Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

tag is not working in wordpress like it is supposed to. When I add tag to a custom post type it shows up in tags list and the relationship can be seen in the term_relationships table and the tags are seen in the posts when I edit the page.But the post count for tag remains zero and the link of the tag does not give me the posts related to the tags.For example

mysite.com/tag/mytags

does not give me the posts related to this tag.

I have tried this manually as in i have used these also wp_insert_term and wp_set_post_term and the problem is same. this problem is only when I use custom post type.But when I use post type:post.This works perfectly.Is there somethig that I am missing? Thanks in advance

share|improve this question
add comment

1 Answer 1

The URL can vary based on your settings. Do you have a category or tag base set? I believe the default URL of mytag would go to mysite.com/mytag. See more at the wordpress codex page on permalinks.

share|improve this answer
    
the url is working because as I have written above the url is working perfectly for post type post it.I mean when I do site.com./tag/mytag it shows all the post type post related to tags but doesnot show custom post types –  Narendra Chitrakar Jun 18 '12 at 12:21
    
wordpress.org/support/topic/… –  fdsa Jun 18 '12 at 22:14
    
this is close but not quite what i was looking for the count for the post related to tag doesnot increase in mine.So I don't think it establishes a relation to begin with but the weird thing is the term id and post id both show up in term_relationship but count doesnot increase in term_taxonomy.i have been hung up on this four more than 5 days now but no solution –  Narendra Chitrakar Jun 19 '12 at 7:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.