Hi,
I used tagDiv composer to design a page with a specific block design to display posts from a specific category. However, when there are no records found, I would like to display – “NO RECORDS FOUND”. Right now it is a blank when there are no records.
How can I do this? If there some conditional IF statement that will allow me to display a message when there are no posts to be displayed?
THanks
Partha
Dear Calin,
Thanks for the prompt response. Here is the URL of the page – https://labinmotion.com/service-providers/
For a specific search filter selection where there are not records, I would like a message to be displayed. I recall seeing a “No posts to Display” message thrown up somewhere.
Was wondering if someone could help in displaying this message. I have a child theme running. Which specific php file needs to be edited? Is it possible to have any such modification done through the child theme?
Regards
Partha
Hi partha, that message will be display automatically if you’ll use the search file from our theme -> https://i.imgur.com/ntVjgHi.png -> https://i.imgur.com/sBNx4Ct.png currently you are using a custom page ( most probably it is set in the child theme) -> https://i.imgur.com/OpSh5il.png
Thank you!
Hi Calin,
Thanks but it does resolve the issue.
https://labinmotion.com/service-providers/
1. I created a page and using tagDiv composer I inserted a flexblock in the page that displays custom posts
2. I also added a search filter (search and filter plugin) to search the custom posts
3. When there are no results it is throwing a “blank” instead of displaying a message such as “No records found”.
Have not been able to identify the PHP file that is responsible for this behaviour. The site-wide search that you pointed to works on a site-wise basis. Any further help would be highly appreciated. Also the number of records also does not display.
Thanks in advance
Partha
Hi,
1.2.3 This is because the Newsmag theme do not understand that the page that you made and assign as search page to a search page, that is way I said that this can be achieved only with the search page that we provide, -> https://i.imgur.com/vmUt64m.png also if you want to display a message when there are no posts in block, then you need to edit the block that you use in the custom search page.
Also if you want to edit that element, I think that you are using the flex block 1, this is set on this path -> wp-content/plugins/td-composer/legacy/Newsmag/includes/modules/td_module_flex_1.php
Hope this will help you!