syncronize number of search results
-
At the moment I display the number of posts in each category by this code:
function custom_add_count_on_archive_title( $title ) { $term = get_queried_object(); if( $term instanceof WP_Term && 'category' === $term->taxonomy ) { $title .= ' <span>'.$term->count.'</span>'; } return $title; } add_filter( 'get_the_archive_title', 'custom_add_count_on_archive_title', 10, 1 );
How can I change this posts number according to the real search results number?
The page I need help with: [log in to see the link]
- The topic ‘syncronize number of search results’ is closed to new replies.