Show custom fields in search results

Posted in: Newspaper
Post count: 101

I would like to show additional custom fields in the search results, so not the wordpress engine searching the fields, but the page displaying extra custom fields.

Can you help me where I would need to add the additional code please ?

What it is now:

With an additonal field added to the result:

Post count: 35449

Hi,

Pleas note that in order to achieve this you’ll need to make some changes in theme files, here is the path to that file wp-content/themes/Newspaper/includes/modules/td_module_mx2.php -> https://www.screencast.com/t/cMnqf43yQ6P -> https://www.screencast.com/t/qrmS2TgD -> https://www.screencast.com/t/1wyasizqKRA

Thank you for your understanding!

Post count: 101

Hi Calin, that’s great but yet only the half of the solution for me.

I also would like to achieve this similar effect on the search results page.
So not only on the menu bar search, working here:

but also here, the page one gets to see if he/she hits the search button.
I am currently using the “general search template”: theme template and article display view module 2.

http://v2.enola.be/?s=war+on+drugs

Post count: 35449

Hi,

In order to do that you need to make change in module that you have set in search page, for example I have the module M16 -> https://www.screencast.com/t/yERciznC , so I make those changes in td_module_16.php -> https://www.screencast.com/t/HE03deHhMed
-> https://www.screencast.com/t/9HomGeVgb

Hope this will help you!
Thanks.

Post count: 101

Hi Calin, it does help but we’re down to two options.

We would like to have the load more option instead of the pagination, or more results on the page, using article display view 6.

We are considering building a custom template using the cloud library, but then we wouldn’t know where to alter the code as you suggested earlier in the example of td module 16.

can the custom template be adjusted like this as well and if so where can we find those files please ?

thank you, nearly there 😉

Post count: 35449

Hi,

I think that can be possible, but you need to know for what modules to do that changes in theme files, also making changes in tagdiv cloud library is a bit harder to achieve, but not impossible.

Thank you for your understanding!

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