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&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

How to filter posts by specific date and its tag

Ashur Please try following code with date_query. this is working fine at my end. Let me know if you want any additional detail. <?php $postdate = get_the_date(‘Y-m-d’); $args = array( ‘posts_per_page’ => -1, ‘post_type’ => ‘post’, ‘date_query’ => array( ‘after’ => $postdate, ) ); $update = new WP_Query($args); while ($update->have_posts()) { $update->the_post(); $post_id = get_the_ID(); … Read more

Don’t show a tag on a post if it is the only post with that tag

Because get_the_term_list() create the html link for you. So you need to use wp_get_object_terms to get a list of terms info first with count for handling. compare each tag count, if the count > 1 then create the link and output I have just tried. It works <p class=”meta-tag-list”> <?php $terms = wp_get_object_terms($post->ID, ‘category’); // … Read more

Tag with Alias capability

You can’t do it via the admin UI, but there is an alias_of argument for wp_insert_term which accepts a slug for the term you want it to be an alias of. In practice, I don’t know exactly how this works. See this thread from wp-hackers.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)