Every Post in WordPress is filed under one or more Categories. Categories allow the classification of your Posts into groups and subgroups, thereby aiding viewers in the navigation and use of your site.

learn more… | top users | synonyms (1)

0
votes
1answer
18 views

How can I only display one link rather than many?

So using this snippet: <?php foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(10, $childcat)) { echo '<a href="'.get_category_link($childcat->cat_ID).'">'; echo ...
0
votes
1answer
23 views

How can I only display links from a child category

Using this code from the codex: <?php $category = get_the_category(); if($category[0]){ echo '<a href="'.get_category_link($category[0]->term_id ...
0
votes
1answer
21 views

Is there a reason I cannot get the current category in a loop?

I think I am doing this wrong but if I do: if(have_posts()){ $category_id = get_query_var('cat'); var_dump($category_id); while (have_posts()){ the_post(); } } the var dump ...
0
votes
1answer
20 views

Formating content in category.php

I am using WordPress 3.5.1 / Twenty Twelve theme. I am using custom fields and displaying them in category.php in the following way, the php is setup inside category.php in the "/* Start the Loop */ " ...
0
votes
1answer
41 views

How to list recent posts in a wp nav menu?

I've been trying this for some time and didn't get no clear answer. I need to display 11 recent posts inside one of my menu items. My menu is like: ITEM 1 · MAMBA · ITEM 3 I need to display ...
0
votes
2answers
18 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
0answers
15 views

Jigoshop Categories List with Image

I have not used WordPress or Jigoshop before but have to add a page that shows all the parent categories in the Jigoshop categories list along with the image associated with that category. The list ...
0
votes
0answers
31 views

not all categories being displayed

I have created a child theme for a theme I purchased. The purchased theme is for restaurants wanting to display their menu. The theme accepts menu items as Posts, and groups them according to ...
0
votes
0answers
12 views

Oxygen theme - problem with categories [closed]

On my blog I am using the basic version of Oxygen theme. After I created different categories empty frame appeared after the category title. That frame dose not have color and I can't change it. I ...
0
votes
2answers
22 views

Wp Dropdown Category Not Show Current As Title

Im using wp_dropdown_categories for a page. Issue im having is i dont want it to show the current category that the page is on as the title, i want it always to display the "Select A Category" text i ...
0
votes
1answer
13 views

Include Category Description in search result

I have pulled Category Description data <?php $taxonomies= array('taxonomy'=>'area-type'); $terms = get_terms($taxonomies,'orderby=id&hide_empty=0'); ...
0
votes
1answer
9 views

Hide parts of the post content after typing it's name or searching it by category

Code "nohome" worked for displaying wanted (hided'n'waiting) content on home page (just postname and image) How it could be adjusted or modified to make the same after name of post has been typed ...
0
votes
1answer
16 views

Exporting just posts of a specific category

I have found the export tool particularly useful for moving posts from sites to site, and even once wrote an extension for Elgg to export its content into wordpress export format for migration to ...
0
votes
1answer
32 views

How to display posts by author in a separate page, other than author.php?

I have an author.php page that displays two kind of posts: first section displays latest 10 posts(games) from all categories, except one. second section displays latest 10 posts only from that ...
0
votes
1answer
23 views

Limit Loop to One Category

I am trying to limit my loop to one category. This is the loop: <?php $counter = 1; //start counter $grids = 3; //Grids per row global $query_string; //Need this to make pagination work ...
0
votes
1answer
20 views

Search tag within category

How do I search a tag within a category? like if a user is viewing a post that belongs to category "Romance" and the user clicks on one of the tags like for example "blonde" it should list all posts ...
0
votes
1answer
36 views

How to display posts from specific category using get_option function?

I try to display posts from specific category only in a author page, using get_option function like in the code below but it does not work: <?php query_posts('cat='.get_option('admin_cat')); ?> ...
0
votes
0answers
22 views

How to replace an ID with a get_option function in wordpress?

This is my code to retrieve the related posts from the same author in Wordpress: <?php function get_related_author_posts() { global $authordata, $post; $authors_posts = get_posts( array( ...
0
votes
1answer
23 views

How to load several hierarchical categories from functions.php

I need to insert several categories (about 400) into my site. The categories are hierarchical. I would like to load them from functions.php but now I can add one category at time, like this: ...
0
votes
2answers
39 views

Displaying a custom field in Category Archives

I am using WordPress 3.5.1 / Twenty Twelve Theme. I would like to display a custom field in my Category Archives. I have the following custom field working in my single.php , it displays a custom url ...
1
vote
0answers
23 views

Multiple category selection in post, shows less important category in breadcrumb

In my blog I followed a strategy of selecting multiple applicable categories for a post. Suppose an article about The Last Supper by Leonardo da Vinci can have both the categories "Painting" and ...
0
votes
0answers
22 views

Show list of posts only on category site

I used the following code to create a list of my custom categories and custom post types: <ul> <?php $custom_terms = get_terms('project_category', ...
0
votes
1answer
19 views

Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites

I've built two WordPress sites. One is public site--people go to it, view my content, etc. The other site is a private course catalog. In the course catalog I have 3 custom post types. The content of ...
0
votes
1answer
24 views

Highlight wp_nav_menu when category is selected

Using the wp_nav_menu() function to display my menu I noticed the highlighting in the menu was working well for the pages I created (like archives.php) but not anymore when a date (date.php), category ...
0
votes
0answers
9 views

I want to show image first then title/link to the right but

On my index list of posts using catlist, I want to show the featured image first (on the left) then the title/link etc, to the right, but aligned with the middle of the image. Can this be done using ...
0
votes
1answer
20 views

Menu's breaking, now showing all page links on site

There's something quite odd happening on a site I'm working on I can't figure out why at all. I have a custom post type set up for news and categories so the user can select what type of news it is ...
-1
votes
0answers
11 views

pagination on woocommerce category page [duplicate]

I have: <?php query_posts( 'category_name = linee-prodotti' ); if ( have_posts() ) while ( have_posts() ) : the_post(); echo '<li>'; ...
0
votes
1answer
37 views

dynamically filter by category via sub-menu

I'm trying to figure out if it's possible to dynamically filter my custom post types by category via a sub-menu I have set up. So I've set up a custom post type: news and enables categories that I ...
0
votes
0answers
28 views

Turning wp list categories into a dropdown menu

I am creating a custom dropdown for my wp site and I am running into issues. I have a taxonomy set up called 'types', these can be filtered in a nav at the top of the page and they link to the right ...
0
votes
1answer
46 views

How to use Greek characters/letters in a query?

I have a problem with Greek characters in a query. Here is the code Using the Greek characters in the 'meta_value' => 'Ναι' the query can't work, because of the language. How can i make it work?
0
votes
2answers
18 views

wordpress taxonomy query posts

I have categories and sub -categories with same name.. but I want to show only the categories which is on the top level and not in the sub categories $qry=query_posts( array( 'post_status' ...
0
votes
2answers
122 views

Grouping categories by genre

My wordpress video blog have several categories. Lets say the category can belong to several genres e.g actions,horror,mystery and another category belong to actions,horror,romance How do I group ...
0
votes
0answers
26 views

Hierarchical permalink structure for posts showing categories and sub-categories

I'm having a lot of trouble finding an aswer to this. This is what happens to my permalink structure currently: When I open the page, filtering all posts for a category, the url is: ...
-1
votes
0answers
25 views

Execute mySQL query on publishing of post

I would like to post some data to a db when certain categories are selected in a WP post. I would like this to action when the post is made. This is the query I want to run: mysqli_query( $con, ...
0
votes
0answers
29 views

Custom Menu Widgets Disappearing on Category Pages

This question is related to the following thread. wp_nav_menu not appearing for a couple pages The answer to this question works perfectly for my primary nav, however my custom menu widgets in my ...
0
votes
2answers
56 views

cannot achieve this structure (custom posts VS categories VS ??)

I'm a bit despaired because I cannot figure out how to do what I need (and I worked with WP since a lot of time ..) Basically, I need to show my artistic work. Each work is a post, or a page or a ...
1
vote
1answer
27 views

Category's Description field as editor remove <p> tag

I have tried both plugin to make Category's Description field as editor with below plugin. but when i update the text it's remove tag http://wordpress.org/plugins/rich-tax-description-editor/ ...
0
votes
1answer
39 views

Pagination in category

Updated: I have 50 categories and i wants to show each 5 category on one page and next 5 on next page and next 5 on next page. and so on. with pagination. I have 50 categories in a WordPress site. I ...
0
votes
0answers
29 views

Populate a Dropdown Search Form Using Categories and Sub-Categories

Please help me determine the correct code for my drop-down search form. I want to be able to populate from a drop down: Categories Sub Categories Sub Sub Categories Sub Sub Sub Categories. ...
0
votes
0answers
13 views

Getting recent posts corresponding to category items in custom menu

I'm trying to create a tabbed navigation, each tab containing 5 recent post excerpts of category items that are listed in a custom menu. I'm planning to load all these posts at once and put each ...
0
votes
3answers
34 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 ...
-1
votes
0answers
14 views

widget with subcategories

i need to show in a widget all subcategories from the specific category... for example im in http://www.example.com/category/cars i need the widget show all subcategories from cars Widget ...
0
votes
0answers
29 views

Listing Subcategories with post titles underneath

When viewing a parent category page, I am trying to list its sub-categories with each post title (max 5) underneath. I have managed to put together a code that lists sub category titles and I have ...
1
vote
2answers
42 views

Where do posts get the sidebar from?

I'm trying to add an if statement on the sidebars that are displays in POSTS. I want posts to show a specific sidebar if it's in category x and display a different sidebar if it's not in category x. ...
0
votes
0answers
24 views

Bulk remove category from custom post type?

I know you can use bulk actions to add categories but how do you remove them in bulk? I have a custom post type that is using a category (as status) and it needs to basically be toggled in bulk and ...
0
votes
0answers
12 views

Calling Images from a Gallery when Post is Clicked

http://acesystech.com/edge/ Im wanting to do something simlar to this, where the customer can click a project and see a scrolling images block of the images, however i want to do i with like click ...
0
votes
1answer
31 views

How to customize my category pages

I'm an experienced php programmer, but a wordpress newbie. My site uses the theme twenty eleven. I have created some post categories, and some posts for each category. On my site, for each post ...
0
votes
1answer
38 views

Problem with Custom Post Type Categories

Before I proceed on writing anything just have a look the following images. (snapshots) I have one custom post type by name 'questions' just like we have 'posts/pages'. If you look at the image ...
0
votes
1answer
34 views

Custom built theme won't filter categories

I'm currently finishing up my first proper wordpress theme for my uni assignment. When I select a category in the sidebar the full list of posts from all categories are still shown. I've tried ...
0
votes
0answers
19 views

Category View with rewrite url

Is it possible to send the parameters in the category link like site.com/category/slugname/2011/20/10 and rewrite the url as $wp_rewrite->rules = array_merge( ...

1 2 3 4 5 29