WordPress Title Tag Not Changing

The return function doesn’t require (). So you’d want your function to look like this: function wpse_set_document_title_separator ( $sep) { return ‘-‘; } add_filter( ‘document_title_separator’, ‘wpse_set_document_title_separator’ );

See when a tag was first added

The information is not stored but you may tweak it to fit your need. Refer: How to add a date creation field when a custom taxonomy relationship is created?

Custom message if tag returns empty results

I am concerned about one part of your description. You say the user sees a “blank” page. Is the page completely blank? If so, you have a fatal error somewhere and an empty tag Loop isn’t the problem. I am assuming you meant that the content is empty but otherwise the page loads fine. You … Read more

How to have H1 for site title only on Homepage?

This is one way… <?php $headertag = ( is_front_page() ) ? ‘h1’ : ‘h6’; ?> <hgroup> <<?php echo $headertag; ?> class=”site-title”><a href=”https://wordpress.stackexchange.com/questions/88144/<?php echo home_url(“https://wordpress.stackexchange.com/” ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></<?php echo $headertag; ?>> <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2> </hgroup>

How to add tags to identify custom post types in archives?

I got it 🙂 <?php if ( ‘articles’ == get_post_type() ) { ?> <div class=”post-type-articles-container pull-left post-tag-margin”><a href=”http://collectivelyconscious.net/articles”>Articles</a></div> <?php } ?> <?php if ( ‘questions’ == get_post_type() ) { ?> <div class=”post-type-questions-container pull-left post-tag-margin”><a href=”http://collectivelyconscious.net/questions”>Questions</a></div> <?php } ?> …etc.

How can I add meta tags in the WordPress header?

Since you are you using Yoast WordPress SEO plugin you can utilize its hook action wpseo_opengraph to add your custom meta tag property. Add the following code to your theme functions.php file: function wpse213_article_tag(){ global $post; if($post->post_type == ‘post’) { if($tags = get_the_tags($post->ID)) { foreach($tags as $tag) { echo ‘<meta property=”article:tag” content=”‘ . esc_attr($tag->name) . … Read more

How to export tag counts to excel?

Please note that this stack is more focused on development, asking for ready–made solutions like plugins isn’t considered in scope. From perspective of native functionality and power user perspective you can sort tags by count in WP admin interface. You can also tweak how many tags are displayed via Screen Options (top right of page). … Read more

How can i get tag without />?

Capture all the wp_head content add_action( ‘wp_head’, function(){ ob_start(); }, 0); Replace endings and output results add_action( ‘wp_head’, function(){ $head = ob_get_clean(); echo str_replace(‘/>’, ‘>’, $head); }, 99999);