0
votes
0answers
2 views

Why adding Categories does not auto refresh in Backend while using my custom theme?

If I am using my own created custom theme, the Post Categories Page in admin panel is not getting updated automatically when I add a new Category. To see the new category I have to reload the page ...
0
votes
2answers
25 views

Show post categories

I'm trying to show post categories for some breadcrumbs. At the moment, I have this: the_category(' / ', 'multiple'); But for some reason, it is stating the parent category twice (I only want ...
0
votes
1answer
17 views

Add description to categories menu in admin

I'm trying to create a simple paragraph above the categories menu, on the post editor page. Most of the tutorials I see are adding input meta values, and not in relation to the categories. What's the ...
0
votes
1answer
23 views

Retrieve all posts within tag OR category?

I've created a simple loop. And I have the following array for the query: $live_tags = array( 'tag' => 'live', 'showposts' => 5, 'post_type' => 'post', 'post_status' => ...
0
votes
1answer
20 views

filter a loop base on specific category

i am going to filter my loop base on the category the problem is that when i am using the following code it display all my post. // Query args $custom_cat_args = array( 'posts_per_page' => 15, ...
0
votes
1answer
46 views

problem with using serveral loop in wordpress theme

i am using several loops like this <?php $posts = get_posts('numberposts=1&order=DESC&orderby=post_date&category='.get_cat_ID( 'سیاست' )); foreach ($posts as $post) : ...
0
votes
2answers
138 views

wp_update_nav_menu_item() to insert categories

In the script below, I'm attempting to dynamically add categories to a custom menu. Everything works great, except for the fact that the categories do not have hyperlinks. What am I missing in ...
0
votes
1answer
42 views

How to show post from category select

This code is in my functions.php: array( "name" => "Headline", "type" => "section"), array( "type" => "open"), array( "name" => "Headline Categories", "desc" => "Choose a category ...
0
votes
3answers
80 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
0answers
44 views

How to get multiple loop in category.php, my scripts becomes madness

I am trying to develop a category.php page for my new theme and the loop which I’ve developed shows all posts of my blog and really bad too. I'm not an expert in WordPress theme development and ...
1
vote
1answer
45 views

Custom post types and category archive

I think this should be a simple thing to do but I'm struggling to make it work. What I have is the following: Custom page type called 'products'. Products contain multiple categories and ...
0
votes
1answer
51 views

Category base 404 - fix

I have seen the problem before when hacking in WordPress When trying to access the www.example.com/category/ I get a 404-page displayed. Is there a way to display something useful such as a page ...
0
votes
1answer
271 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
0
votes
1answer
76 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 ...
1
vote
1answer
101 views

is_archive() content being shown instead of is_category()

My Issue: If I browse to http://mysite/category/mycategory, the if (is_category()) content isn't displayed, the if(is_archive()) is shown instead. My code: archive.php: <?php ...
0
votes
2answers
208 views

How to add icon over specific thumb

i m not so good with php, but i wanted to do this, and i know its possible, but i dont know how. I m looking at http://codex.wordpress.org/Function_Reference/in_category but it doesnt make to much ...
0
votes
3answers
48 views

New Theme creation

I am looking into creating my first ever WordPress theme. I want to move my current look and feel that I have created via html / css into WordPress. What I would like, is to have a list of ...
0
votes
1answer
104 views

How to differentiate the homepage structure from the category page structure in WordPress template?

I am very news in WordPress world and I am finding some difficulties with creation of a personal template. I want implement a blog like this one (that is using WordPress): ...
1
vote
1answer
500 views

How to get the url to tag & category base set by the user?

I'm searching for half an hour now on how to get the url/permalink base in Wordpress (the 'category' and 'tag' value set in the backend). Could you please point me in the right direction? I want to ...
1
vote
2answers
114 views

Edit the markup of categories list

I want to list x number of categories. I'm using wp_list_categories function, it generates the following markup <li class="cat-item cat-item-1"><a ...
0
votes
1answer
46 views

Disable sticky option for specific categories

Is there a way to disable the sticky option on posts in specific categories?
0
votes
1answer
705 views

How to call custom category field data in theme?

I am trying to add two custom fields to my categories (which I have done thanks to this answer - Any examples of adding custom fields to the category editor?) And now I need to call them within my ...
0
votes
1answer
106 views

WordPress 3.5 how to determine if user is on category listing or category edit screen?

I have a custom bit of code that I need to place on the category edit screen but not on the manage categories screen. Prior to WordPress 3.5, I was able to set a global $action variable to check for ...
4
votes
3answers
978 views

Posts in multiple Categories different single.php

I am smashing my head against some code. Here is the situation: I have one post in 3 different categories, this post has to be visible in "category 1" with the single1.php, in "category 2" with ...
1
vote
1answer
82 views

Should I use custom menu, C.P.T. or theme options, or something else for this?

On many sites ( particularly CMS style business sites) there are 2, 3 4 or sometimes more boxes usually containing a title, icon and some text. These appear under the header linking to strategic parts ...
0
votes
2answers
460 views

How to detect /category and /tag base pages?

In a theme I'm building, I have this structure for detecting what type of page something is. However, if I visit mydomain.com/category/ or mydomain.com/tag/, all I get is the "nothing found" message I ...
0
votes
1answer
142 views

Category names on CPT archive pages [closed]

I purchased a theme and I'm trying to customize the "blog archive" pages for the Portfolio CPT that's included with the theme. The theme is: ...
-1
votes
2answers
2k views

category.php + pagenavi + custom post types + /page/2 = 404 errors

I'm seriously going to go crazy if I dont figure this out. I have tried a million different things from googling,a nd I've been staring at this same problem for days now. Pagination for a custom ...
1
vote
1answer
96 views

Woo Framework: woo_cat_featured not populating

In framework settings: $options[ 'featured_cat' ] = array( "name" => "Featured Category", "desc" => "Featured Posts will display in the main rotator on the homepage.", ...
0
votes
3answers
2k views

wp_nav_menu not appearing for a couple pages

I solved the problem with the page, the correct answer is ptriek's comment below. Well I'm having a bit of an odd problem here, wp_nav_menu works on all pages EXCEPT my category pages (probably my ...
0
votes
1answer
435 views

Category Archives: Show posts categorized in parent category only

When I view a category page in 2010 theme, it shown posts categorized in: the category visible in url child categories of 1. I want to restrict the results to 1. only. Please help.
0
votes
2answers
2k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
0
votes
1answer
331 views

How to custom category template based on category?

My blog have 2 categories: Photos and Texts. I would like do customize the category template so that when it renders Photos post's, I want to show a thumbnail gallery and when it renders Texts ...
-1
votes
2answers
254 views

Change from all posts to specific categories post on main page?

How do I change my index.php to display only the desired categories posts in the main page ? I tought that changing this would workout but instead it just print nothing: query_posts( ...
0
votes
1answer
425 views

1 post per category on homepage and counting those posts

What I'm trying to do on my homepage is to pull the latest post from each of 6 categories but then I need the variable $counter to increase (+1) for each post so that I can style them properly. I've ...
0
votes
1answer
129 views

List categories of a post hierarchically?

Let's say I got the following categories: Style | + Shoes + Pants If I make a post and put it in the Style and Shoes category, it will list them alphabetically instead of hierarchically. So ...
5
votes
3answers
3k views

Plugin for custom sort order for categories?

I'd like to employ a sort order option in my theme to allow categories to be sorted similar to pages. Can anyone recommend a plugin that does this?
0
votes
1answer
587 views

Exclude parent categories from the_category() within the loop

I have typical parent and child categories setup as follows: Food potatoes corn beats Sports soccer football hockey etc. In my index.php template I'd like to list the categories of the ...
1
vote
2answers
299 views

Category specific themes?

My client wants to implement a special appearance to each of our category pages. Kind of like child themes... she wants to shift the background image, change a few graphics, and tweak the colors ...
1
vote
6answers
935 views

Append HTML to an LI of wp_list_categories

Im currently using <?php wp_list_categories('child_of=4&title_li='); ?> to echo out a list of my categories. I'm wondering how I could append some html (specifically an » to the end ...
0
votes
1answer
301 views

Post thats in Two Categories, only want to display name for one

In my Wordpress site I've created, I'm having issues hiding or not displaying one of the category titles I set up. I'll try to explain better. Wordpress Admin Side I have a post that is in two ...
1
vote
3answers
346 views

filter “inactive” categories from wp_list_categories?

I'd like to add a checkbox to the category editor screen to allow the category to be "deactivated" (perhaps while the site owner works on the category content and posts). Once I've done this, what are ...
0
votes
2answers
532 views

Archives and Categories in Custom Menu

What is the easiest way to place the Archives and Categories lists within my menu under a parent tab. I'd like both of the lists, such as "Archives" leading to the "archives" sub-menu, and the same ...
1
vote
2answers
12k views

How do I make the category template display full posts instead of partial posts?

I'm using Wordpress 3.0.1 with the Twenty Ten theme. I'm trying to change the way the posts in the Category view are displayed (i.e. by going to a url like mywebsite.com/category/mycategory). ...