The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

0
votes
2answers
28 views

Get multiple tags by slug

The following code works fine for me: $term = get_term_by('slug', ‘foo’, 'post_tag'); $args = array ( 'posts_per_page' => 5, 'paged' => $paged, 'post__not_in' => get_option( ...
1
vote
1answer
2k views

What are the Theme tags in style.css used for?

In the style.css file in the first comment block, there is a optional "Tags:" directive. What are these tags used for? When are they used?
0
votes
1answer
23 views

Would a “hub” page work better as a page or a post?

First of all, I don't know whether "hub" is the correct terminology, but it is how we've been describing it. I run a movie blog and would like to create a page for each movie we cover in depth. I want ...
0
votes
0answers
5 views

I want to display tag description and tagged attachment (without post if there isn't..) while using tag url

I am new to coding, but i do understand a little bit. Is there a way to edit tag.php to achieve this? I have added Shiba media library plugin to my site so that i can add tags and catagories to ...
0
votes
2answers
38 views

Advice on how to build multiple cross-tagged content types

From those who are more experienced with WP, I could use some advice on how to best set up a local history site to do the following: There will be a list of articles on different historical topics. ...
2
votes
3answers
65 views

How to display post tags

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
1
vote
1answer
220 views

Search Custom Post Type with all meta attached?

I'm currently have a search box that's supposed to search a certain post type. It's supposed to check the query against all standard cpt content, tags and the associated meta data. I'm wondering how I ...
-1
votes
3answers
42 views

Tags outside the loop

I want to display the tags of the posts in my main page. I used: global $post; the_tags(); But it's only showing up for my FIRST page.
0
votes
1answer
51 views

Root level category, tag, author and archive pages to work

I want root level Wordpress urls to work for category, tag, author and archive page. For example right now categories pages are. domain.com/category/cat-name/ it shows posts under cat-name ...
1
vote
2answers
99 views

WP_Query: Mixing category__in and tag__in together

I'm creating a "Related posts" section for my theme, based on a tutorial from wpbeginner.com. It offered two options in selecting posts: those in the same category(ies), using category__in, or those ...
0
votes
1answer
42 views

Conditional category & tag statement

I'm just working on a "quick" change to the blog-entry-subtitle of specific posts in a category on my wordpress website. I'm hoping to have "Published in Orchard and Vine Magazine on:" instead of ...
0
votes
1answer
125 views

Is it possible to make tag archive page specific to Custom Post Type?

I want to create a tag archive page (or template) specific for some custom post type(CPT). I am little new to PHP and Wordpress, by the way. In my environment, I have CPT portfolio and custom ...
1
vote
1answer
242 views

Edit tag cloud widget number

By default, the WordPress tag cloud widget has a set amount of 45 tags to display. This can be seen in the wp-includes/category-template.php file. By default, the WooCommerce plugin which I have ...
0
votes
0answers
64 views

Strip <p> and <br> tags from a specific div

I don't know if its WordPress or TinyMCE but something always puts a crap load of paragraph and break tags everywhere which is incredibly annoying. I have a div with an ID of "hover" and I want to ...
1
vote
1answer
2k views

tag.php doesn't work with tags on a custom post type post?

here's another stumper. I have a tag.php page. It works fine, unless you click a tag that is in a post associated with a custom post type. Then it doesn't work. Its like that tag, doesn't exist. But ...
0
votes
1answer
81 views

WordPress SQL query to tag all posts containing a specific word on title

Is there a way to bulk tag all posts which have for instance "bottle" in their titles? Thanks!
0
votes
0answers
45 views

Add Class to Tag Cloud Links and Change Terminology

Is there a way to use functions.php to add a class name to all the tag cloud links? This topic does what I need, but it's not through the functions.php file. I was also hoping to change the tag cloud ...
0
votes
0answers
25 views

Countdown to post date tag function?

I made an events post type and I wanna make countdown to post date, for example: Let's say the post is due 5 days later so it writes in the post '5 days remaining' Any suggestions?
0
votes
1answer
34 views

Use blog as base for tags and categories

I have a site: example.com build in wordpress. I set up the posts page as example.com/news. I want my tags and categories to be: example.com/news/tag/mytag example.com/news/category/mycategory ...
0
votes
1answer
34 views

Display a tag before the menu list content

Is that possible to insert a text before the menu items? In this case, I want to lead a <h3> tag for the list content (like a menu title). I tried the if/else to recognize that the menu have ...
1
vote
1answer
269 views

Require tags for bbPress topics [closed]

I want to require my forum members to enter at least one word into the "tags"-line, when they are creating a new topic. As regards plugins and solutions, what I found so far is the WyPiekacz-plugin ...
0
votes
3answers
50 views

How to separate the tags?

Ok I have searched and can't find. Here is what I'm trying to accomplish. I want to separate the tags in my post. For example, I want to show the first tag in my post but have all other tags show ...
0
votes
2answers
146 views

Quicktags on all textarea.. Not working on plugin?

I want to put a couple of quicktags/buttons on a textarea which is outputted by a plugin called user submitted posts. I have given this textarea an unique id and read this on the Quicktags ...
0
votes
1answer
85 views

RSS/XML of all Categories and/or Tags

Is it possible to get an RSS / XML feed of all WordPress Categories and/or Tags? I've searched the Codex, which was very helpful in giving examples on how to access specific, individual RSS feeds, ...
0
votes
1answer
46 views

How To get a list of popular tags by post views?

I am searching for a code, not a plugin, that will allow me to display the most popular tags based on post views for that day. Someone asked this same question but they asked about a plugin, my ...
0
votes
0answers
58 views

Wordpress Custom Post Type and sort by Tags

I am currently making a custom Wordpress theme, but so far I am stuck at this little problem. I have created this custom post type. And in that page (media.php) I want to be able to click on the tags, ...
0
votes
1answer
389 views

Automatically tag posts based on user-defined words [closed]

I want to systematically add tags (/custom taxonomy terms) to all previous posts, from a predefined set of tags (i.e., not Yahoo tags or tags from 3rd-party APIs). For future posts, I would like ...
0
votes
0answers
47 views

Hide Tag Title When No Tags

I'm using this Twig code to display tags on my posts. However, I can't figure out how to get the Tags: title to hide itself when there are no tags. If there's no tags, it just shows Tags: , which of ...
0
votes
1answer
31 views

Primary Taxonomy for Post

My blog posts have have multiple items from my custom taxonomy attached to them. For the sake of this post lets just use Tags taxonomy... So a post may contain 4 tags, is there a way I can select one ...
0
votes
2answers
63 views

Categories and Tags not working!

I'm at the final debugging stages for a major web design project I've been working on for the last 6 months. The site itself is based on the has become a bit of a behemoth (merging 4 existing sites ...
0
votes
0answers
53 views

How can I allow people to 'subscribe' to categories?

I would like for people to be able to subscribe to categories and tags, somewhat like Pinterest or Quora where you have to follow a minimum number of categories. After doing a plugin search, I can't ...
-1
votes
1answer
17 views

Tag page that displays specific posts

How would I go about coding a generic tag.php page that displays all the posts with a specific tag? For example, if I navigate to example.com/tag/your-tag, it should display all posts with the tag ...
3
votes
5answers
25k views

how to query posts by category and tag?

I am trying to show a list of posts that are related to category X and tag Y. I've tried the following code: $args = array( 'posts_per_page' => 4, 'tag_id' => $tag_id, 'cat' => ...
0
votes
0answers
12 views

WP_Query using OR arguments e.g. posts in Category OR has Tag [duplicate]

I'm wondering if it's possible to use WP_Query() to filter posts by multiple OR arguments. I'd like to retrieve all posts that are in a category OR have a tag. If this is not possible using ...
0
votes
0answers
23 views

Bulk Edit Tags in WordPress?

I would like to have the ability to bulk edit post tags in WordPress. I found an article here which uses a very old version of WordPress (the article published in 2011) and it appears that back then ...
0
votes
0answers
35 views

Is There A Way To Add Weight Or Order To Tags?

I'm wondering if it's possible to add a 'weight' value to tags... similar to how one can specify an 'Order' for pages to indicate their placement on menus. Eg. I may have dozens of keywords but I ...
0
votes
0answers
36 views

Related Post ignore certain tags?

I'm seeking some help, I want my related pages to ignore a certain tag in my pages. How can I get it ignore tags with "sports" in it for my related posts, below is the code I use for related posts on ...
0
votes
0answers
49 views

Show posts with specific tag in a category page

I have a website which belongs to a magazine. I want do something like this: I want to create a link that refers to /category-slug/tag-slug. in that link, I want to show all posts with "specific tag" ...
0
votes
0answers
31 views

Delete Categories and Tags from frontend

There is a function to generate post delete link from frontend: get_delete_post_link( $id ); Are there any functions to generate categories and tags delete link on frontend? I have been looking for ...
0
votes
1answer
25 views

The Tags are not displaying when creating a post

When creating a post, there is not an option to designate tags for that post. There is still a checkbox for displaying tags under "Screen Options," and when checked, it still does not display. It is ...
0
votes
1answer
29 views

Wordpress tags as twitter sharer URL hastags

I want to share a wordpress post on twitter. I'm using this : <a href="https://twitter.com/share?url=<?php the_permalink() ?>&text=<?php the_title() ?>&via=<?php ...
0
votes
1answer
673 views

Strip shortcode from excerpt [duplicate]

I have this challenge, that i've found out that i'm not the only one in the WEB with the same issue, nevertheless, there are no solutions yet. I'm trying to remove shortcodes from my custom post ...
0
votes
1answer
33 views

Best way to specify “article type” in URL

I'm helping a small blog out that posts a few different "types" of articles. These article types are shared across categories. We want to put the article type in the URL. So the structure would look ...
0
votes
1answer
42 views

Feedburner closing </head> error

This is the error I get from feedburner. "The URL does not appear to reference a valid XML file. We encountered the following problem: Error on line 573: The element type "link" must be ...
0
votes
0answers
29 views

Adding post tags without capability edit_posts

I have a custom role called Event Contributor whose capabilities are limited to the post type "events". The role does not have the capability "edit_posts". The post type "events" has custom ...
0
votes
1answer
31 views

Insert wordpress tags below posts via functions.php

I'm in the process of building my own Wordpress theme from scratch and my knowledge of PHP is limited. What I'm trying to do is insert tags below each post. I can do this by inserting code into my ...
0
votes
1answer
38 views

wordpress the_tags not in alphabetical order

I'm using wordpress' the_tags() to display the tags of each post on a single side. What I intend to do is to display the tags by the order they are typed in in the backend, and not by alphabetical ...
0
votes
0answers
43 views

Access WordPress Tag Function From Modal

I am currently working on a plugin that will require the use of the Tag library inside the given WordPress installation. From a page, the user can click a button from the editor, which then opens a ...
0
votes
1answer
30 views

Mapping external data to tags via term_id

I'm looking at migrating a custom CMS with about 40k posts and about 100k tags into WP. The site covers news about the concert industry and will use tags as artist names associated with each post. ...
3
votes
1answer
44 views

How to allow user to perform search by more than one tag

I have a few dropdown select option in my wordpress sidebar: Whenever a user selects an option from any of the dropdown, they are directed to the search result page: ...