post not found message for each loop
-
Hi,
I used the hook ‘cpt_alm_post_not_found’ to change the ‘post not found’ message for my custom loop. but the parameter ‘$id’ in your code (here: https://plugins.blacktheme.net/cpt-ajax-load-more/docs/filters/#cpt_alm_post_not_found) returns ‘Post not found’ message when echoed.
How to change the ‘Post not found’ message for each loop?
my code:
function change_the_ajax_loop_not_found_text($id){ return '<p style="padding-left: 10px">Nothing found.'.$id.'</p>'; } add_filter( 'cpt_alm_post_not_found', 'change_the_ajax_loop_not_found_text', 10, 1);
Regards,
NamiThe page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘post not found message for each loop’ is closed to new replies.