-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACF Gallery #2
Comments
I override the default search query if several params are set. (You can check https://github.com/houke/color-palette-generator/blob/master/inc/cpg-admin-search-rewrites.php#L26). After the query is altered I check for a custom search template. If your theme already has a custom search template it might need to be changed. Else I fallback on the search template in the plugins folder: https://github.com/houke/color-palette-generator/blob/master/templates/search.php. If you want to add your own search template for our plugin, add a templates folder to your theme and add search.php in there. |
Hey I understand and apologise for being a little naive here. I can view all my media and associated palettes are generated so the plugin is working. I just can't understand how to associate it with my custom post type 'works' when searching, any help would be massively appreciated now - and happy to make a donation to offer my thanks Desperate to use this plugin as I think its fantastic! |
No worries :) Let's see if we can figure this out.
What is the result? Do you see the image? I've tested above scenario in a new website with only the color palette generator and I get the coffee image back as a result. |
Hey - Followed the steps, and this is what I see
http://ryanganderarchive.com/color/brown
I can see the image on the backend with the generated palette with the
same #82624a dominant colour
So somewhere I’ve gone wrong right?
—
Gareth Horner
garethhorner.eu
On 8 January 2019 at 18:11:32, Houke ([email protected]) wrote:
No worries :) Let's see if we can figure this out.
- First of all, save this image
<https://static.independent.co.uk/s3fs-public/thumbnails/image/2018/04/15/16/china-coffee-cup.jpg?w968>
and upload it to your library
- Generate the palette. The dominant color is brownish (#82624a in my
case)
- Now go to yoururl.com/color/brown
What is the result? Do you see the image? I've tested above scenario in a
new website with only the color palette generator and I get the coffee
image back as a result.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKJRv85UGu46p4ABaoOO_UzTCDzrvm1sks5vBN9NgaJpZM4ZHKYU>
.
|
How are your permalinks set? (Settings > Permalinks). Try to set that one on Post Name if it isn't already. Does that change anything? Do you have other plugins active as well? |
Yeah permalinks are set as you mentioned :( Notable plugins in use… Some more info… `
|
It's not because I'm on Wordpress 5 is it? |
WP5 isn't the issue, I am using it with no problem with 5.0.2. I see you've SearchWP as a plugin. I think they alter the search query as well and we might collide with one another. What happens if you disable that one for a bit? |
Yeah turning off SearchWP has worked! — http://ryanganderarchive.com/color/grey |
Good to hear :). I think we're both modifying the search query and SearchWP was overwriting mine. It's a paid plugin from the looks of it, so I won't be able to debug further I think. Are you planning to use SearchWP in the future? |
Spoke too soon, deleted the previous comment. CPG is working with https://wordpress.org/plugins/acf-better-search/ installed rather than SearchWP, amazing. Do have one more query - now that I can see the plugin working, is it possible to show the post an attachment is related too rather than a list of the attachments like so… http://ryanganderarchive.com/color/grey Essentially displaying like the search template here… http://ryanganderarchive.com/search/art Does it require customising the search template in the CPG plugin folder? |
I think there is already a custom search template active. My template would output this by default
So the first step for you would be to find the template in your theme which is setting the layout you're seeing |
Hi
I have a cpt set up titled 'works' and using an acf pro gallery-field titled 'rga_images' - im appending the main url with the various /color/color options but nothing is showing up. What's the best option here? Do I need to edit the search.php template?
Incredible work on the plugin btw
The text was updated successfully, but these errors were encountered: