New answers tagged content
Make a child theme. Copy category.php into your child theme. Comment out lines 17, 33, 46, 48, and 50. The category checks if you have any posts under that category and if not shows 'Nothing Found'. You're essentially removing the if statement. This will show the category title if there are not posts under this category.
You are using get_the_content() wrong, it can't take a ID, which is what get_option('page_for_posts') does return, and generally gets the content of the current post inside the loop, in which it has to be used. To get the actual content of that page you can do: $page_for_posts_id = get_option( 'page_for_posts' ); $page_for_posts_obj = get_post( ...
Run a couple of queries and a code snippet to calculate the word count for the post content, comments content and tag names on each post. // This query will return the number of words in the post content $post_qry="SELECT LENGTH(post_content) - LENGTH(REPLACE(post_content, ' ', ''))+1 from wp_posts where ID=".$post_id; // This query will return the number ...
Top 50 recent answers are included