Tag Info

Hot answers tagged

6

It looks like your site's title is empty. Fill it out or try for example: add_filter( 'wp_title', function( $title ) { return trim( $title ); } ); to remove the blank space in front. For your setup, the following part of wp_title() is responsible for the blank space: $title = $prefix . implode( " $sep ", $title_array ); So when you're on a single ...


3

From the Codex If you are using a custom homepage with custom loops and stuff or a custom front-page, you will have an empty wp_title. Here goes a neat hack to add the description/tagline at the wp_title place on homepage: add_filter( 'wp_title', 'baw_hack_wp_title_for_home' ); function baw_hack_wp_title_for_home( $title ) { if( empty( $title ) ...


3

There are different ways to achieve this. Google tries to automatically extract the publish date of an article you wrote. The most common and easiest way for Google is to use rich snippets: http://schema.org/Article See "datePublished" - property for this. After you implemented these little HTML-snippets you can test your markup using the Rich Snippet ...


2

This is not a WordPress issue. A Google search for boostsaves.com reveals it is a browser add-on that injects iframes into the page source of whatever you're viewing. Use Google to find instructions on how to remove it from whatever browser you're using.


1

You're close. Your first attempt is using get_the_tags incorrectly. The function accepts the post ID you want to get the tags from. In your example, there is no $tag global, so $tag->name is trying to fetch a property of a non-object. In your second attempt, a single post won't have any tag-related query vars, that would only be set on a tag archive page ...


1

If you only want The Content (of the main editor of the post) displayed, you can use echo get_the_content(the_ID). If you want more: First, you have to get the post data from the database, with the function get_post, or doing a query with WP_query. Then you can output different parts like title, date, content... accessing your variable properties, or doing ...


1

The best and easiest solution (imo) would be to develop your design directly in the Underscore theme. This way you will code only once the design - you won't have to redo the dynamic parts (like the menu items, widgets and other parts managed by Wordpress). The alternative would be to code your design in plain HTML/CSS/JS and then transform these files in ...



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