Tag Info

Hot answers tagged

2

You can change it via the category template (if you have multiple category templates you'll need to edit all of them; if you have archive.php, you need to edit it only there). Otherwise you can use the Yoast SEO plugin which have settings for naming the archives (actually I think that almost all SEO plugins have those settings).


1

This is probably a bit better (same concept but modified): *Edit: New modified version on Github that supports images with links - https://github.com/wpexplorer/wpex-auto-link-titles/blob/master/wpex-auto-link-titles.php function wpex_auto_add_link_titles( $content ) { // No need to do anything if there isn't any content if ( empty( $content ) ) { ...


1

Just use the the_title filter to hook into the title content and work with that. add_filter( 'the_title', function( $title ) { // Manipulate the $title as you want and then return that. // You can add test conditions such as 'is_main_query' // (https://codex.wordpress.org/Function_Reference/is_main_query) return $title; } );


1

As you have stated, rank is defined by a value in a custom field, so you would just need to get the value from the custom field and display it. You can try the following inside your loop global $post; // Just make sure the custom field name is correct $rank = get_post_meta( $post->ID, 'custom_field', true ); // Display the title and rank echo 'Rank ' ...



Only top voted, non community-wiki answers of a minimum length are eligible