The tag template page began displaying posts for specific tags once I replaced the argument statement with the following, which is great!!:
$tags = get_the_tags();
$tag = $tags[0]->name;
$args = array(
'post_type' => 'post',
'post_status'=>'publish',
'category_name' => 'NEWS',
'tag_slug__and' => $tag,
'posts_per_page' => 2,
'paged' => $paged
);
However, when I click on a pagination link on the tag archive page, Chrome returns ‘This localhost page can’t be found’…
Related Posts:
- Filter categories using tags
- How can I display tags as categories?
- Display all product tags associated with a specific product category
- How can I filter posts by tag on the fly
- Maintaining a separate posts page for certain categories and don’t show those on home page
- How to filter tags by category?
- Is There a Difference Between Taxonomies and Categories?
- What is the difference between a “tag” and a “category”?
- Control term order on a per-post basis
- get all tags from category
- 404 Error On Category and Tags Pages
- Checklist of selected categories
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Category and tag with same name
- In the tag archive – display count of posts for each category they belong to
- Automated adding of one tag to all the posts in a category
- Exclude most recent posts from specific category in wp_query()
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Deleting All tags except categories Wp database
- Search by word, category, tag, author
- How to filter archives both by category and tag?
- Get tags specific category
- Dropdown category filter
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Category vs Tag vs Table
- Custom WP_Query for current category (in category.php)?
- How to find the number of Tags a post has?
- How to not treat categories as tags in feeds
- Hide posts of a certain category unless logged in
- Are Category or Tag Archive Pages Possible?
- Taxonomy filter all children
- Random post + categories + tags
- Search Posts / Pages with multiple options?
- Display tags from specific category in select fields
- Offline WordPress Application
- Find out which user created a category or tag?
- RSS/XML of all Categories and/or Tags
- Automatically set default password to all posts in a specific category
- get_the_categories filter returns an empty array
- How to make 2 tag feeds show up on 1 page?
- Different templates for different category tags
- Get link which associated with a specific category and tag
- Why category.php throw 404 in wordpress while calling paginate_links()?
- How to get related tags based on a category?
- Needing a snippet for listing category specific tags
- Show only first category name in RSS?
- How to organize custom categories for filtering and selecting
- Filter $cpt categories to omit certain category
- How to list categories within tags?
- How to set a filter by category within a customised page
- Use Tag input metabox style for Categories
- Refine/Filter the Search Results by Category
- menu using category and tags
- Pagination for ajax category filter
- ajax for filtering posts by category in wordpress loops
- limit a list of tags to one category [closed]
- How to hide category name
- How to make the ‘delete’ button inactive on some categories?
- Is there a reason I cannot get the current category in a loop?
- How replace individual elements in the RSS feed with a single string
- Change post title if post has specific category
- Filter By Category Dropdown List With Custom Taxonomies
- Tags Instead of Category
- Filter categories/tags to display in multiple metaboxes for selection in back-end
- Editing Loop So It Targets Specific Tags?
- Change Default Content when Creating a Post based on Previous Category Choice
- How can I include custom category and tag base in template files?
- Pretty URLs with Categories and Tags
- Autolinking keywords in text with tags
- Are tags different than categories?
- How to filter post from categories only if the posts appears in one of them, not the other?
- Show Posts via cat+cat in URL that are in both Categories doesn’t work
- Display all categories but only if they have posts in them that have a specific tag assigned
- How to fix select filter on category
- wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
- Help to display the current categories and tags of a post
- Add $args to wp_list_categories
- How to hide a category or tag everywhere EXCEPT for use with get_posts
- Hide specific category tag on single post page
- Filtering posts in category by tag URL
- echo $category[0]-> cat_name; shows only one category name
- How to show entries related to main category
- Restrict retrieved terms by category?
- show only one category and filter by tag
- Hiding by default posts in given category except for some cases
- Re-coding category-template.php to go to custom URL
- Category and tag urls return 404 error
- Tag Menu items based on their categories
- Hide category name using mod_rewrite
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- 404 error when i try to search by category or by tag
- Custom filters inside a specific category?
- Display related posts with same category or same tag return blank
- filter single_cat_title avoiding the breadcrumbs
- htaccess redirect for all categories converted to tags now showing 404
- How to create a category or tag available exclusively to the admins and not to the users?
- altering theme – content generated by PAGES not PORTFOLIO
- Search tag within category
- List products from current category
- Remove “?category=” in the URL wordpress ajax filter work for category