
michaeljbooth(@michaeljbooth)
2 Posts
Customers
Quote from michaeljbooth on May 5, 2021, 09:14
I am using the MDTF plugin on a client website to search posts and display the results. The posts are created with the Advanced Custom Fields plugin. MDTF is added to the page by a widget and as MDTF Taxonomies only to search by categories and tags.
The search results from MDTF show the post title, post date, post category and post tag. However, I would also like to show the post excerpt with the results. Is there a way of returning the post excerpt in the search results with the MDTF plugin?
I would like to keep things as simple as possible for my client as they will be the ones creating the posts. Therefore, I would prefer not to create additional fields the client will need to fill for each post they create or create something similar to your templates, such as my_cars templates. I just need to keep things simple for my client.
I am using a child theme. Can the search results from MDTF be customised through the child theme?
Kind regards
Michael Booth
I am using the MDTF plugin on a client website to search posts and display the results. The posts are created with the Advanced Custom Fields plugin. MDTF is added to the page by a widget and as MDTF Taxonomies only to search by categories and tags.
The search results from MDTF show the post title, post date, post category and post tag. However, I would also like to show the post excerpt with the results. Is there a way of returning the post excerpt in the search results with the MDTF plugin?
I would like to keep things as simple as possible for my client as they will be the ones creating the posts. Therefore, I would prefer not to create additional fields the client will need to fill for each post they create or create something similar to your templates, such as my_cars templates. I just need to keep things simple for my client.
I am using a child theme. Can the search results from MDTF be customised through the child theme?
Kind regards
Michael Booth

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 5, 2021, 09:54
Hello
, I would also like to show the post excerpt with the results. - If you are not using my plugin templates, then write in support of the current theme
Can the search results from MDTF be customised through the child theme? - unfortunately I did not understand your question
Hello
, I would also like to show the post excerpt with the results. - If you are not using my plugin templates, then write in support of the current theme
Can the search results from MDTF be customised through the child theme? - unfortunately I did not understand your question

michaeljbooth(@michaeljbooth)
2 PostsTopic Author
Customers
Quote from michaeljbooth on May 5, 2021, 11:28
Thank you for your reply.
The theme I'm using is Divi.
In regards to using a child theme, I meant to say would adding a search.php file to the child theme and adding a few lines of code to display the post excerpt from the search results work with MDTF.
Kind regards
Michael
Thank you for your reply.
The theme I'm using is Divi.
In regards to using a child theme, I meant to say would adding a search.php file to the child theme and adding a few lines of code to display the post excerpt from the search results work with MDTF.
Kind regards
Michael

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 6, 2021, 09:51
Hello Michael
It doesn't depend on my plugin anyway
Yes, you need to change the template of the current theme. You use this template in these settings - https://c2n.me/4bWdHTX.png
Hello Michael
It doesn't depend on my plugin anyway
Yes, you need to change the template of the current theme. You use this template in these settings - https://c2n.me/4bWdHTX.png