Forums › Forums › Search & Filter Pro › Advanced custom field, can’t find posts
- This topic has 11 replies, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) April 28, 2020 at 12:03 am #241659
Hello:
I am trying to put a filter on my website, working with advanced custom fields.
I get the fields to recognize me, but I can’t get how many posts appear that match what I filter.
http://www.euskadienbtt.net/category/buscador-de-servicios/
Thx
Trevor(Private) April 29, 2020 at 10:59 am #241917The display of the results is dependent on the Display Results method. You are suing the Shortcode method, which in turn uses our exemplar results.php template. This is only a basic template, and you would have to customize it yourself to change the layout. Some users are OK with this, some are not. Sometimes, it is made easy by your theme, by taking code from an existing theme template.
The normal category page, how is that built? Does it use a visual builder or theme options, or does the page use a theme template coded to two columns?
Are you expecting to use this search on other pages? I ask because the Shortcode display results method works only on a single page.
Anonymous(Private) April 29, 2020 at 11:48 pm #242050The category shows 2 columns by theme options.
I need to create another search filter for another section, but I think it can be useful for me to customize it for both sections.
I will review result.php if you have an example of someone who already has it, it will be very useful.
thx
Trevor(Private) April 30, 2020 at 7:24 am #242062Unfortunately, it is likely to be specific to your theme theme, so other examples will not work. When I have done this for myself on projects, I have examined the output HTML on a sample page and reverse engineered that into a combination of HTML and PHP for a custom template. It typically takes me 3-4 hours to do this though.
An alternative solution is to use a plugin that works in a similar way to our shortcode method:
https://searchandfilter.com/documentation/3rd-party/post-grid/
In the Post Grid plugin, you determine the number of columns by using the post width setting.
Anonymous(Private) May 2, 2020 at 11:10 pm #242421Hello:
I have tried what you tell me, but I can not get it to work well.
If I put a filter in the url if it does, although it does not appear well, the image is missing, it is not due to configuration failure it is due to conflict.
http://www.euskadienbtt.net/buscador_de_servicio/?_sfm_provincia=Alava
With the shortcodes that indicate:
[searchandfilter id="558" action="filter_next_query"]
[post_grid id="558"]
As you can see shows the products, but the search engine is not seen.
And the products are seen without image. If I put the ID of the post grid if it shows the images.
The ones below with an image is another elementor post grid.
Trevor(Private) May 3, 2020 at 7:41 am #242423Two things. I had not noticed that you have Elementor Pro installed. You could use this method (it requires you to install the addon from the top of the page):
https://searchandfilter.com/documentation/3rd-party/elementor/
This is an integration method we have written specifically for Elementor Pro, as that page builder is very popular.
However, if you wish to stay with the Post Grid plugin, the two shortcode you showed me in you lats message will show only the posts. To show the filter form also, you need this shortcode:
[searchandfilter id="558"]
-
AuthorPosts