struggling to order by title
struggling to order by title
struggling to order by title
Set document title through shortcode plugin
How to select a category automatically based on a word in WordPress post title?
The specific bit I’m having difficulty with: <?php the_title( $attachment_id ); ?> the_title() doesn’t have a post ID parameter, and the first parameter is actually a text/markup to prepend to the title. And note that attachments like images in the WordPress media library have their own posts, where the type (i.e. post_type) is attachment. the_title() … Read more
Change displayed “page name” to distinguish multiple pages with the same title
You can use the wordpress save_post action to update the title using the custom fields as you like. Here is the simple example I have used myself – add_action( ‘save_post’, ‘custom_post_type_title’ ); function custom_post_type_title ( $post_id ) { global $wpdb; if ( get_post_type( $post_id ) == ‘job-updates’) { $terms = get_field(‘job’, $post_id); // taxonomy fields … Read more
Cannot retrieve categories for post in The Loop
Change modified date to current date when title updated automatically
If you meant the title in the title tag as in <title>here</title> on single post pages, then you might want to use the single_post_title filter to prepend the string in question to the page title. E.g. add_filter( ‘single_post_title’, ‘recipe_single_post_title’, 10, 2 ); function recipe_single_post_title( $title, $post ) { if ( in_category( ‘recipes’, $post ) ) … Read more
Changing The Default Header POST Title and Description text by category in wordpress