Search results preview

Posted in: Newsmag
Post count: 4

Hi.

I have a little problem with search results preview. I use default wordpress posts and two types of custom posts (for news and reviews). I would like to search and show preview of all post types – now it’s only for posts. How to fix it?

Screenshots

Search preview (only 1 result – post):

Search results site (3 results – post, review and news):

Post count: 6535

Hi

You need to add your post types to the query for search feature. This can be don by editing the td_data_source.php file and add your post types in &get_wp_query_search function here: http://screencast.com/t/lINmyCE9oW

Thanks!

Post count: 4

Hi.

Thank you for your help, but there is a little problem yet.

Search preview works now, but only if I changed a file in a main theme. It doesn’t works for a child theme. Why?

Post count: 6535

Hi

Unfortunately the files from booster platform can’t be edited in child theme, so the only way is to edit the main theme file. For more information regarding the child theme support with our theme please check our documentation here: https://forum.tagdiv.com/newsmag-child-theme-support/

Thanks!

Post count: 4

I understand.

But in the theme settings I can configure some options for custom posts. Could you in the future add there additional checkbox „show in search preview” or something like this?

Post count: 6535

Hi

Thanks for the suggestion. I’ve added it on our list and we will consider it for futures updates. However we have to chose carefully what features we will implement as we have over 250 features requests on our list and the users must receive what is best from us.

Thanks!

Post count: 4

Hi, I have a similar problem yet.

A view counter doesn’t work for my custom post types – it shows always „0”. Can I add my custom posts names somewhere, like with a search?

Thanks!

Post count: 6535

Hi

By default the theme display post views on custom post type: http://screencast.com/t/t01EQuRmgL8 Please make sure you defined your custom post type properly, also deactivate all plugins except Visual Composer, clear all caches and test again.

Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.