Tagged Questions

The built-in taxonomy 'post_tag'.

learn more… | top users | synonyms (1)

1
vote
1answer
94 views

Adding a class to tag list in a function

How can I add a class to the function so I can style the output tags as boxes in css? <?php if(get_the_tag_list()) { echo ...
0
votes
1answer
114 views

Display posts containing at least 1 from a list of say 10 tags but not containing other tags

Difficult to explain and maybe totally impossible but I have say 30 tags in total. I would like to output all posts that contain at least one from a list of say 10 tags but do not contain any of the ...
0
votes
1answer
19 views

Loops in category description

I would like your help to find how to do a thing I need: I have some posts, for example: Article Title: Banana Article Title: Orange Article Title: Lemon Article Title: Strawberry All this ...
2
votes
1answer
68 views

Unable to delete a Category and Tag that share same slug

In my wordpress site I have a category (e.g Animals) with slug (anim) and a tag with name (Animals) with the same slug (anim). My problem is that I want to delete the category but keep the tag. ...
0
votes
1answer
52 views

Is there a way to randomize and connect a background and header image?

Right now I am using a different CMS, and I wrote a little bit of PHP which helps me (by using content from hidden pages) bring in a connected background and header and randomly display them, UNLESS ...
0
votes
4answers
58 views

How to find the number of Tags a post has?

Is is possible to find how how many tags (and categories) a post has and to display it? something like this: when a post has three Tags and two categories, at the end of the post show that number ...
0
votes
1answer
43 views

Create another TAG widget for posts

Currently, Posts have "tags" and in the post edit page you can add and remove tags using the widget. I would like to add another such tag-system (say, keywords) and I would like for it to use the tag ...
1
vote
2answers
217 views

Mass remove a number of tags from a number of posts

i am having a wallpapers site. I was having lots of posts with no tags and i tried some plugins to auto add tags like simple tags where you need to set some tags and it will auto use those tags for ...
0
votes
0answers
53 views

Query post names based on tags of current post

I have a custom post type called 'employer'. In some of my normal posts, I use the slug of an employer as a tag to link the two together. For example POST A mentions "Adidas" and therefore I add ...
0
votes
1answer
42 views

Display custom post taxonomies

This should be fairly simple and Im not sure what I'm doing wrong. I am trying to display the tags associated with my custom post. I have registered it like so // Initialize Taxonomy Labels ...
1
vote
1answer
70 views

What tags should be used for themes to show the type of layout?

In the Tag Filter the old tags 'fixed-width' and 'flexible-width' were renamed to 'fixed-layout' and 'fluid-layout'. Also new 'responsive-layout' tag appears. Should users duplicate new tag ...
0
votes
1answer
157 views

term/tag not being saved for custom post type

I have been using a chunk of code as a plugin that was suggested in the answer to this question. Please check the code provided below instead of the one in the question, as I may have modified it a ...
0
votes
1answer
43 views

Add post tags to previously created custom post type

I am trying to add post tags to the custom post types bbpress creates, so that I can do some "related topics" kind of stuff. Is there a function that adds a post support like 'taxonomies' => ...
0
votes
1answer
88 views

Include either name or slug in the include parameter using wp_list_categories?

I'm working both locally and remotely, pushing code via git. I have the current code set up below, which looks for tags and outputs them as a list using wp_list_categories. I need to use the include ...
0
votes
1answer
287 views

How to Override “Blog pages show at most” in tag.php [duplicate]

I'm in the middle of developing a site (http://he.leavingworkbehind.com/) which features a single post on the home page, as determined by the "Blog pages show at most" option in Settings > Reading. ...
0
votes
1answer
57 views

Custom post type tags not showing in search

I have a number of custom post types for which the admin can tag each separate posts. The problem : None of the posts show upon front-end search query with any of the tags... Is this normal ? have I ...
0
votes
2answers
385 views

Wordpress query_posts by tag doesn't work anymore(?)

I had this code running fine forever. Some days ago it just started outputting nothing (just the <ul></ul>). No errors in logs: <ul style="margin-left:0"> <?php ...
0
votes
0answers
23 views

lists post with current post title IN tag

We're starting from two different situations. The main one: I know I should be using pages instead of posts for building my structure, but all the data comes from a site build in java and totally ...
0
votes
1answer
41 views

Post order by selected tags

Let's say you want to show posts tagged with tags : "HTML, CSS". I want to order posts in tag archive in the following order: Post tagged with only exact two tags - HTML,CSS Post tagged with only ...
0
votes
1answer
129 views

Tag page only display 10 posts

I've had a problem with this for quite some time now and cannot for the life of me figure it out. I am using Multi-site and not sure if that has anything to do with it or not, so keep that in mind. ...
5
votes
2answers
11k views

How to customize woocommerce related products?

I have the following lines of code in my website that will display the related products at the bottom of my single product page in WooCommerce... functions.php: // display upsells and related ...
0
votes
1answer
29 views

How to create a category or tag available exclusively to the admins and not to the users?

I would like to create a category or tag name that is available only to the admin(s) and not to the authors. For example, I would like to create a category or tag called Exclusive Content. Now only ...
0
votes
1answer
72 views

Is there an error in get_the_tag_list()?

I'm using the theme TwentyThriteen1.0 for my WordPress blog. I recognized that the tags in the meta-part of an article are not separated by a comma. I had a look at the function ...
0
votes
1answer
214 views

Exclude most recent posts from specific category in wp_query()

I have a featured posts slider, which uses the 'featured' tag. I have a query for this which grabs the 3 most recent posts with this tag and shows them in the slider. Below this, I have a list of 10 ...
0
votes
1answer
193 views

display most popular tags in two columns

I have a section in my sidebar where I'd like to display my most popular tags in two columns. I found this post from WPSnipp that details how to narrow your list down to only the most popular, however ...
6
votes
1answer
1k views

Can't custom taxonomies have same terms (slugs) as categories?

I knew that it's not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that's the case with custom taxonomies as well. So for instance, if my ...
0
votes
1answer
170 views

List all posts of certain category which share some tags

My problem is quite simple: I've got a couple of posts in different categories that have several tags, some of them in common. When I load a post, in my sidebar (using PHP Code) I want to show a ...
0
votes
1answer
19 views

Wordpress - show all posts + ones with specific tag

I have 3 types of posts as below Normal posts without any tag With "featured" tag With "sold" tag On a page, I just want to show normal posts + ones with featured tag and don't want to show posts ...
0
votes
1answer
49 views

Query pages based on tags

On a site that I'm working on I've added the ability to tag pages. These tags should then be used in a query to retrieve all associated pages of a tag. In my functions file - // Add tag support to ...
0
votes
0answers
105 views

How to sync to custom taxonomies (tag structure)

I have two taxonomies: "Contributers" and "Narrators." I want to sync the terms in these two taxonomies identically, so much so that I wish to be able to click on "Edit Term" and see the information ...
0
votes
2answers
943 views

How to get the excerpt of a page before more tag?

I have many pages in my wp installation. All I want is to be able to display the excerpt of any page, also on any page (before more tag). How do I go about it? I was fetching the content of the ...
0
votes
2answers
112 views

Clear custom field when new tag is added

When adding a new tag in the admin interface, WordPress doesn't reload the page. It appears to send the data with an ajax call, clear the fields and add the tag to the list on the right. I am working ...
2
votes
1answer
47 views

Why is WP creating both “/?tag=” and “/tag/” URLS for same content?

I've noticed that WordPress is generating duplicate content with slightly different URLs. For example: http://example.com/the-blog/?tag=santas-workshop ...
0
votes
0answers
49 views

404 Errors due to Tags Getting Converted to Categories

I am having problems on my site thehardtackle.com - webmastertools reports thousands of 404 errors. I have observed a lot of these, and it appears that all the tags on the Website are appearing to ...
0
votes
4answers
182 views

Function to echo (or display?) wordpress tags in the head section

I can't figure this out but I'm trying to echo the post Tags of the post in the <head> section. This code resides in the <head> section of the site. Basically I want the post tags to ...
0
votes
1answer
18 views

How to get links to user and tag by its name?

For example i have the name of user or the name of tag. Is it possible to get direct link to the author or tag? I need something like get_permalink for posts.
0
votes
1answer
31 views

Tags not appearing in “Add New Post” Page

I'm working on a mag website. I'm using Tags to group some content. For this I have added all the required tags from the Tags section under Posts. But When I go to Posts -> Add New, the Tags panel ...
0
votes
1answer
82 views

Return all wordpress custom posts in specific multidimensional array

How can I get all custom posts (post_type=family_guy) with their ID and all of their tags in multidimensional array? Here is exactly how I would like my array to look like: $array = array("1" => ...
-1
votes
1answer
64 views

Attaching multiple custom taxonomies to one CPT?

So I've been developing a complex CPT lately and something came up that made me realize I need a second custom Taxonomy on the CPT. Is this impossible? Also I'm currently using tags as well, so the ...
0
votes
1answer
38 views

How to store category and tags separatly on wordpress?

I am trying to insert data manually on all tables on the back end. I am facing a problem while inserting data to wp_terms. I can successfully insert category into wp_terms and define relationships in ...
1
vote
1answer
204 views

Highlight Current Tag in wp_tag_cloud

I'm in the middle of building a website and one of the pages will be a glossary. The first page of the glossary will display a list of all the words, which are custom post types assigned into a custom ...
0
votes
1answer
210 views

Custom Taxonomy - Tags Metabox is showing instead of Categories

So I have a weird thing going on. Usually by default when you create taxonomies a categories metabox is made automatically (right?). For some reason that's not showing up but Tags metabox is showing ...
0
votes
1answer
408 views

Query Posts by Tag and exclude

Is it possible to only include posts with a specific tag in this query? <?php $query = new WP_Query (array('showposts' => 5, 'orderby' => 'date', 'order' => 'DESC')); ...
-3
votes
1answer
258 views

Get all posts without tags

I'm working with a tag plugin. Is there a WordPress way to get_posts or query all posts that have no tags?
0
votes
1answer
39 views

scaleability of tags

I had seen a post by Wordpress where they mention that they support unlimited 'tags' (as opposed to categories). Since php is driving Wordpress, would you mind explaining how/why they can make such a ...
0
votes
1answer
32 views

Issue with Custom Post Type Tags

I cannot get TAGS to work within my custom post types. I have the following to establish my custom post type: function Work() { $labels = array( 'name' => _x( 'Work', ...
0
votes
1answer
19 views

Add a tag like a post

For days I'm looking at different threads Stackexchange, but I can not find the solution. I hope you can help me out. I created a post_type called "bands". I'm trying to, from another post_type (eg ...
0
votes
1answer
111 views

How to list tags from custom post type attachments?

So I am trying to list out all the tags created for images uploaded within my custom post type only. I added in a snippet of code to my themes functions.php file to enable media categories and tags: ...
1
vote
1answer
19 views

Line of Tag information Is Formatted Strange

I'm placing a tag list in the post footers on a blog. You can go to this specific post: http://www.smallfryblog.com/2013/09/03/small-fry-films-midtown/ and scroll down to the post footer see what ...
0
votes
1answer
95 views

altering theme - content generated by PAGES not PORTFOLIO

I bought the Hardy theme from Theme Trust thinking that the content below the home page slider would be generated by page content NOT "project" or portfolio content. Turns out, the content below the ...