i am not sure but try this:
query_posts('category_name=". $category[0]->cat_name);
if (have_posts()) : while (have_posts()) : the_post();
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$all_tags_arr[] = array($tag->name,wp_basename(get_permalink()));
}
}
endwhile; endif;
foreach ($all_tags_arr as $cat_by_tag) {
$output_promotion .= "<li><a href="' . get_bloginfo('url'). "https://wordpress.stackexchange.com/" . $cat_by_tag[1] . "https://wordpress.stackexchange.com/">'. $cat_by_tag[0] .'</a></li>';
}
print_r($output_promotion);
Related Posts:
- Convert IPTC keywords to blog post tags
- How do I get the slug of a custom taxonomy category of a post?
- Does an action fire when adding a tag via the “Tags” meta box?
- Display tag image in post using Taxonomy Images plugin index.php
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- How can I hide tags on a child-category page, if that tag has not been used?
- How to get a post’s content? [closed]
- Slug collision between page, taxonomy and custom post type
- Get Posts Under Custom Taxonomy
- Where is the old post permalink slug stored?
- Use category base slug in posts’ permalink
- WordPress removing tags?
- Different post sort order within different categories
- Custom Post Types, slug, archive and SEO plugins
- Add tag to post api wordpress
- Set tags for a post – without tag creation
- Displaying the category name of a custom post type
- Elegant way to include only published posts with get_objects_in_term()?
- How to automatically generate a unique random slug
- Post slugs and images cannot have same name?
- Show WordPress Custom Taxonomy Items Based On a Selected Item From Another Custom Taxonomy
- How to remove Nextpage tag inside posts text depending of utm_campaign
- Change the Slug of Post Type post to baseurl/post/%postname%
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Verify if tag is used on posts
- How are terms connected with posts in database?
- Plain-text tag list?
- Display posts by tag on page
- How to control which category will be picked for the slug of a post?
- Edit a post from frontend. post_tags get saved, but not separated
- Change slug with custom field
- Determining Slug Before and After Edit
- Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
- how to limit and display tag?
- Importing data from spreadsheet into wordpress DB, along with custom taxonomies and their terms
- How to update all post at once?
- Include related posts on a page
- How to display post tags
- How to add shortcode tags in single.php [closed]
- get_terms parent for current product only
- Remove post_tag from default post type, add custom taxonomy
- deleting terms programmatically
- generate unique slug while inserting post
- Adding Multiple Values to a Post Meta Key
- What Defines What Category A Post Picks (if in multiple)
- Post taxonomy from exif data
- Redirection to taxonomy posts list after post submit.
- Remove custom posts that match taxonomy value
- Using Custom Posts with Metaboxes and Drop-downs
- How can I add a meta-box to the posts editor containing all items of a custom taxonomy as checkbox?
- how to programmatically change post tags
- How to get posts by multiple post slugs? [duplicate]
- Define a name to the posts slug
- Filter Posts By Tag
- disable column on post and user list
- WordPress post tag & custom field
- WP Query related posts by current page Tag ID
- How to display all posts assigned to some tag?
- How To Add One Tag to Multiple Posts?
- Add Post Tags to Body Class
- How to prevent WordPress from updating the modified time?
- Bulk update post slugs through database
- WP Query – duplicated posts once including tags in search results
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- Tags to Post-ID mysql query. Tag Search
- How to add Tags Filter in wordpress admin dashboard
- Prepend or add an Image to the content of a Post
- Avoid duplicate post from same Taxonomy
- Automatically Updating Publish Date Bug
- Display post from current category and same tag?
- Get posts by name and taxonomy term
- How to display data in archive page?
- Set terms in a custom post
- Get posts of ONE taxonomy term of custom post type
- Pass data between pages
- Should I use posts or pages in this scenario?
- Display posts with tag that matches current post title
- How can I make a post that belongs to a category or have specific tags, display different from the other single posts?
- Using permalinks, category slugs, and tag slugs
- “more” tag doesn’t appear when browsing category achives or search
- Choose whether to automatically add a taxonomy with the same name as the post
- Print all the tags from a custom post type Please
- wp_get_object_terms returns only Uncategorized on first publish
- Setting posts_per_page for taxonomy term template
- How to bulk-untag multiple posts?
- Add multiple tags to multiple posts
- Help with Taxonomies
- Force the “Choose from the most used tags” meta box section to always be expanded
- Posts list in custom taxonomy
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- How to have posts have a parent in permalink like site.com/blog/postname
- Get Posts Under Custom Taxonomy
- Prepending %category% onto default posts fails
- Replace taxonomy permalinks
- get_adjacent_post by language
- Automatically add date to the auto generation of post slug
- How to handle broken links created by permalink/slug changes?
- Duplicate Custom Post Type and Taxonomy Slug
- Visting slug for ‘post’ post type shows 404 not archive?
- WP_Query: Mixing category__in and tag__in together