The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
2k views

How to get WooCommerce Product Category Link by ID?

WooCommerce's product categories are a custom taxonomy called "product_cat". In a function I'm writing, I'm using get_categories with the "taxonomy" parameter set to product_cat. Everything works fine ...
0
votes
1answer
129 views

Anchor tag generates blank href attribute using echo esc_url( )

Following is my categories page. It's listing the all categories in the page. But when <a href> gets blank value here. see the attached screen shot. Why href is blank here li><a ...
0
votes
0answers
32 views

make a post or page permalink based category

I have two language categories on my site, English and Indonesian. How can I create permalink post or page based on category slug such: example.com/en/page example.com/id/page or ...
0
votes
1answer
50 views

Category callback box problem

I am using Ciola theme from Theme forest and this is my site: http://www.gazetaswietojanska.org/pomorzekultury/. I have an issue concerning category callback on the homepage. As you can see, there are ...
0
votes
1answer
81 views

Filer taxonomy posts by current category

I have a custom taxonomy 'where' and I am using this code to get taxonomy terms on single.php <?php echo get_the_term_list( $post->ID, 'where', 'Where: ', ', ', '' ); ?> How can I ...
1
vote
1answer
148 views

Get the name an the description of a link category

I have a link category with the id $id=23; and the slug $slug=friends;. I managed to read all links from that category using get_bookmarks($id). Now I also want to use the name and the description ob ...
0
votes
2answers
695 views

How to make a metabox that contains link categories?

I'm looking for some suggestions or tutorial links about how to create a meta box that allows users to choose from a list of link categories. So far I've been looking at this post about taxonomies in ...
0
votes
0answers
24 views

How to show Next/Previous within the same Category? [duplicate]

Possible Duplicate: Previous/Next Post Within the Category? I got this code from a website. http://wordpress.mcdspot.com/2010/06/02/stay-in-category/ <div class="navigation"> ...
0
votes
1answer
927 views

Outside the loop Category name with link

I want to display the category Name by using category ID with link to category page (out side the loop). here is my code... <a href="<?php get_category_link('23'); ?>"><?php echo ...
0
votes
1answer
283 views

Is there an API to create link categories programmatically?

I am using wp_insert_link to import a lot of links, but I have to assign the link category manually afterwards. Is there a corresponding Wordpress function to create link categories?
0
votes
1answer
92 views

wp_insert_link not working

Im using this code to insert links into my blog: $linkdata = array( 'link_name' => $title, 'link_url' => $url, 'link_catetory' => 3, // my cat ...
1
vote
1answer
639 views

Query post for 'selected category' in archive.php

I'm trying to figure out how to display a 'featured post' on a selected category archive. My website uses the category-based navigation for different types of posts (text only post-blog, and image ...
1
vote
2answers
2k views

How-to get the get_category_parents() breadcrumbs trail without link on last item

Just a question : I want to use get_category_parents() to display a breadcrumb on a category archive page, but with no link on the current displayed category (SEO purposes, because they say that's a ...
-1
votes
1answer
2k views

Make a Custom template for a specific category in wordpress

I am having issue with a custom category template. I want to create a new template for my specific category "VIDEOS" so that all posts under this category show in new style. Basically, i want to show ...
1
vote
2answers
175 views

How do I get rid of “category” from my URL structure?

By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel. How can ...
0
votes
1answer
325 views

Add Link Category on Activation?

Is it possible to add a link category on plugin activation? What I mean is the Links section, as you know by default it has the Blogroll link category. I want to add a new link category when my ...
0
votes
2answers
176 views

separate posts to have (kind of) 2 blogs?

Before putting a lot of effort in this, just to find out it's not possible: Let's say I have two different categories and I want the user to be locked in one of them after choosing it from a ...
0
votes
1answer
1k views

How can I display a list of categories of my posts

I have a Post Category called 'Podcasts' and under it are many other sub-categories. On a page I have titled "Podcast Categories", I would like to list all categories under the "Podcasts" category, ...
1
vote
1answer
401 views

Need category header to link to category archive list

I tried using wp_list_categories, but that just gives me a list of the categories. I currently have this code in my category-recipes.php file: <ul class="subcats-list"> <h2 ...
1
vote
1answer
2k views

Search form with Category and Sub Category

How to create WP Search Form with Category and Sub category for illustration a search form (for search title Book=title post) With condition By Keyword, By All Category and Sub Category selected ...
0
votes
1answer
357 views

can I 'combine' categories as a menu item?

I have custom post type and I want to have a menu where I combine category or categories from default Wordpress post type and from my custom post type. Let's say I have these categories sport, ...
1
vote
3answers
1k views

How to add classes in the wp_list_category parent link

How do I add classes in the wp_list_category , I know the wp_list_categories('title_li='); generates classes , but I want to add a class in the parent category link <ul> <li><a ...
0
votes
3answers
803 views

How to splice in wp_links links into the loop?

I want to create a loop where 2 or 3 items from my blogroll are spliced in like this: <loop> <post1> <post2> <blogroll1> <post3> <blogroll3> ...