How to filter out post type meta?
How to filter out post type meta?
How to filter out post type meta?
How to add a custom field after wp post
I would work the code arround and do something like this. <h1><?php echo get_the_title(); ?> – <?php the_category(‘, ‘); ?></h1> get_the_title(); Retrieve post title. the_category(‘, ‘); Displays links to categories, each category separated by a comma (if more than one). Documentation can be founded here : https://codex.wordpress.org/Function_Reference/the_category Hope it helps you.
I took a look a Tom’s plugin that you referenced and made a stripped down version that simply runs post titles through the Title_case class on-the-fly. I tested it out, and it works. Unlike the original plugin, the code below just changes titles before they are displayed and not when saving posts. Plugin structure: /wpse-title-case/ … Read more
Check Settings > Reading. If you have a Posts/Front page page set, you’ll need to add the meta title/description on those particular pages.
Do you use a query to display results on each page? If you know the query arguments then you can do stuff based on the output. Let’s say ‘posts_per_page’ is set to 20. You can use found_posts to count how many posts there are, and show a title tag based on that info: $num_posts = … Read more
If you supply no title, WordPress will set the title to: (example) (no title) This will be shown in the list table for the post type in the admin area, within the database, the post_title value will be empty. As no title is supplied, WordPress will set the slug to: (example) 1234 …where 1234 is … Read more
To change the heading that appears in the body (message) of the email template you can use the following filter: ‘woocommerce_email_heading_’ . $this->id where $this->id equates to the id class property that is set within the email class of the specified type. For example, to change the heading of the “New Order” email you would … Read more
Can you check your wp-config.php and double check that you are using the correct database, as if you have changed the values within the wp_options table then they should definitely be reflected in the settings in the back-end of WordPress, whereas, updating from WordPress might not have been saving etc. Sounds like a strange issue … Read more
As per the discussion the_content is not a proper hook for filtering post titles while it filters the post content. wpautop() function is called with the_content so it adds the necessary paragraphs. To filter post titles use the_title instead, it won’t add any markup tags by default: echo apply_filters(‘the_title’, get_post_field(‘post_title’, $post_id));