-
AuthorPosts
-
November 10, 2019 at 8:32 am #1155302
Hi There
I am using the Ajax search function on my website and it worked for a while and now it just doesn’t work at all.
When I type something, it does not auto find like it used to.Can you please help?
November 11, 2019 at 1:07 pm #1155567Hey Willem7904,
Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.
Best regards,
VictoriaJune 5, 2020 at 12:46 am #1219642Hi there
I have a variant of this problem. On our site, when you search for a portfolio item nothing comes back in the results. As far as I can see, checking all the options, I haven’t altered anything. When I search the Enfold demo for some content on a portfolio item, its page is found.
On our site, many portfolio gird items have no portfolio page. So the majority of the grid items don’t link to their empty portfolio pages either. Some do. You can see the portfolio grid page in the private section below: any grid item with an underlined title is linked to its portfolio page. If there’s no underline, the link is disabled as its portfolio page has no content. In that case, only its excerpt and image exists and is shown on the grid page. I also added the login credentials there.
So when some one searches the site for content that’s on the portfolio grid, I want the *portfolio grid page* to be returned in the search results, not the actual portfolio page, if possible.
Finally, do you have templates for the portfolio page styles in the Enfold demo here https://kriesi.at/themes/enfold-2017/ when hovering on the Portfolio menu item? Are they using the portfolio grid element or something else?
Thanks
- This reply was modified 4 years, 5 months ago by s29ers.
June 5, 2020 at 2:31 am #1219649Hello, apologies, I had set these portfolio items to exclude from search and missed the checkbox when looking! So that’s OK they show up. However, please help with the last two questions. Please see private section. Thanks.
- This reply was modified 4 years, 5 months ago by s29ers.
June 16, 2020 at 8:57 am #1222933Hi,
Have you tried adding a unique category to the posts without links? We can modify the includes > loop-search.php file and check if that category exists and if it does, we can then replace the get_permalink with the link of the portfolio grid page.
echo "<{$heading} class='post-title entry-title {$css}'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>".get_the_title()."</a></{$heading}>";
The code to get all categories already exists in that file around line 75, so all we need to do is check if the custom category exists.
$taxonomies = get_object_taxonomies(get_post_type($the_id));
We can also use custom fields.
// https://www.advancedcustomfields.com/
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.