Use current date as tag?

We can use e.g. current_time( ‘d-m-y’ ) to get the formatted current date. So you could try: $wpb_all_query = new WP_Query( [ ‘tag’ => current_time( ‘d-m-Y’ ) ] ); Also note the date_query parameter, if you want to target the post date part instead.

Remove the last character from tag name in tag archive page

Two things here, one is wrong syntax because you’re opening and closing PHP tags twice. The second problem is the wrong usage of single_tag_title(). If you want this function to return value instead of outputting it (and you need that because you want to manipulate the string), you need to set the second parameter to … Read more

Do not change the order of the tags in the editor

Terms/Tags aren’t ordered. To help make the terms easier to read, the editor will list them alphabetically, but that isn’t because they’re ordered alphabetically in the database. It’s because a piece of javascript sorted the terms in the UI control. There is no order, only the order you give them. Fundamentally terms have no order. … Read more

How to list custom tags too, to wp-list-table table?

You just need to add ‘show_admin_column’ => true to your taxonomy parameters: ‘show_admin_column’ (bool) Whether to display a column for the taxonomy on its post type listing screens. Default false. So, register_taxonomy( “custom_CUSTOM_tag”, //taxonomy “post”, array( ‘hierarchical’ => false, ‘label’ => ‘title’, ‘singular_name’ => ‘title’, ‘rewrite’ => true, ‘query_var’ => true, ‘labels’ => [ ‘add_new_item’ … Read more

Creating a “Tags” page with search option, instead of using a widget

Create a file in your theme called for example : myTagsPage.php in it paste the following code <?php /* Template Name: myTagsPage */ <h2>Actors</h2> <?php the_tags(‘<ul><li>’,'</li><li>’,'</li></ul>’); ?> ?> then in administration, create a new blank page, on the right side, you should be able to choose which template you want – pick myTagsPage you can … Read more

How to allow html5 tag in WordPress

Just FYI… WordPress 3.2 includes an updated TinyMCE which allows HTML5 tags. It’s still under development but is fairly stable if you want to take the risk of running it now. The alternative is to write any posts requiring the tag with the visual editor turned off. As long as you don’t turn the editor … Read more

Tag subscription option in wordpress. How?

If you’re willing to use an outside provider, you can add the tag feed to Feedburner. First get the tag feed: http://www.example.com/?tag=tagname&amp;feed=rss2 Then to to feedburner.com and create a feed, then enable “Email Subscriptions” (under the “Publicize” tab). I’ve done this, and it works well.

Query all posts which do not have tags assigned to them

Either use the tag_not_in parameter if you have the tag id and if not then you can use tax_query parameter like so: $tag_to_exclude=”example_tag”; $args = array( ‘posts_per_page’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘post_tag’, ‘field’ => ‘slug’, ‘terms’ => array($tag_to_exclude), ‘operator’ => ‘NOT IN’, ) ); query_posts($args);

How to remove tag base from permalinks

It’s probably there to help visually and programmatically distinguish tag URLs from pages; I’m not sure, I’m not a core developer of WordPress. But http://wordpress.org/extend/plugins/wp-no-tag-base/ and http://wordpress.org/extend/plugins/wp-no-category-base/ work well and do not make permanent changes to files or GUIDs, so they can be deactivated with no ill effects. Use the plugins as “regular” plugins, or … Read more