Tag Info

New answers tagged

1

I imagine tagging a post has as much of a impact as the keywords meta tag, which is not at all. Mostly because you can easily cram your post full of unrelated keywords to try and trick the web crawler(s) into marking your content under many different 'categories'. They're mostly for your user and your (built in) search. The best kind of SEO is creating good ...


2

I remembered that once I had to do same thing and wrote a custom sql query... it was painful, as @Rarst said. However I'll post the function I wrote, and there isn't much to explain, is a complex SQL query where there is the intersection of 2 checks to get all the term of a specific taxonomy that are associated in post having a specific term in another ...


0

The standard way to create the tag-archive page link is to ask it to WordPress with: echo get_tag_link($tag_id_or_tag_object) the function is smart enough to deal with id(s) or full tag objects like the ones returned by get_the_tags(). See here for more about the tag link: http://codex.wordpress.org/Function_Reference/get_tag_link


0

It's a quite old question, but I'm answering it as it might help other users who come looking for same. To assign User Tags, you can use the Plugin. Wordpress has built-in support for it, the Plugin allows you to do it the easy way. Instead of manually registering User Taxonomies, It allows you to directly create the Taxonomies and provides a template for ...


1

It is still not very clear what you are trying to do, but maybe get_terms() is what you want. $terms = get_terms('post_tag',array('hide_empty'=>false)); foreach($terms as $t) { echo $t->name.' :: '.$t->count.'</br>'; }


1

As John said in his comment, you have two taxonomies with separate terms. If both posts and portfolios are to share tags, instead of using a new taxonomy just extend post_tags to portfolio custom post type : register_taxonomy_for_object_type( 'post_tag', 'portfolio' );


0

Try referencing the cat query variable like so: $custom_query = new WP_Query( array( 'cat' => get_query_var('cat') ) );


0

You dan do this in the pre_get_posts hook. You can find a few examples on that page too :)



Top 50 recent answers are included