Articles of tags

Remove URL from Tag

I’ve searched Google and I can’t seem to find what I hope to achieve. I’m trying to display the tags without the hyperlink, that is this: <a href=”blalblalba.com/tag/tagname/”>tagname</a> becomes this: tagname Is this even possible?

How to “group” (categorize) the Pages together?

I have a lot of Pages which can be (need to be) grouped under a number of different Categories. ** Then the more important thing is, i need to control those pages (of different groups) programatically via functions.php. Lets say, i would have: Page A (Categorized as: Fruits) Page B (Categorized as: Vehicles) Page C […]

Echo tags with an if statement and display php inside of the IF?

I am having issues displaying tags only if there is tags and including php inside of it as well. This is what I tried but nothing is showing. <?php if( has_tag() ) { ?> <!– Start of tags –> <?php echo get_the_term_list( $post->ID, ‘download_tag’, ‘Tags ‘, ‘, ‘, ” ); ?> <!– End of tags […]

add custom tags for custom post type in wordpress

I have many custom post type and I want two of them to be relate by tags. These tags are only useable to these two custom post type only. like I have two custom post type 1. books 2. writer and I want these two post type have custom tag which only usable to these […]

Set post tags using tag ID

I want to set post tags to a new value. Is there a way to use the tag ID to do it? The wp_set_post_tags only accepts the tag name or an array of tag names. <?php wp_set_post_tags( $post_ID, $tags, $append ) ?> The reason why I want to set the tag using the ID is […]

Creating attachments archive in tags and categories

Per this question (How to create an attachments archive with working pagination?), I’ve been using the following function to have archive pages display attachments as well as pages and posts. It was working for the preexisting tag and category archive pages, but it stopped working a few weeks ago (possibly due to a WordPress update, […]

Make tag archive display post are ordered by post format

I would like to set up an archive page for tags where posts are displayed separated depending on post format, first post-format-aside then an archive with all posts except the posts already displayed, from-post format-aside. So first I want 4 posts with the post-format-aside format and then I want an archive but without posts from […]

how can I use WP_Query to exclude a specific tag.?

I have the following working code for a query on a specific category and tag slug: $args = array( ‘category_name’ => $cat_name, ‘tag’ => $tag_name, ‘post__not_in’ => $sticky ); $my_query = new WP_Query( $args ); I can’t figure out how to exclude a specific tag name from the query. Do I need the tag ID? […]

In what context should Categories and Tags be used

I was thinking on writing up a post called “Review: Ni no Kuni” which would be a personal review on the title game having finished it. Under categories i could make a “Reviews” Category to group all the reviews (weather they be Anime, Games etc.) and a “Games” Category to group all the posts related […]

Display posts by tag

I’m trying to display a list of posts by tag within a post. I’ve cobbled together the following code which I wanted to use in a shortcode, but I’m getting nothing displayed… $args = array( ‘tag’ => ‘my-tag’ ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) { […]