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.
0
votes
1answer
7 views
display post thumbnail for specific category outside of loop
I'm building a theme that features a section wherein I'd like to have the single most recent post's thumbnail of a single category displayed between the header and blog sections. Something like ...
0
votes
2answers
23 views
Custom Post Type Permalinks with %category%
I Create New Post Types and Taxonomies. This is the script:
add_action('init', 'my_custom_post_type_init');
function my_custom_post_type_init()
{
$labels = array(
'name' => _x('Roundabouts', ...
0
votes
2answers
34 views
How to add character to content of post?
In per posts, there are "oo/x/".
How to add "0" before "x" if length(x) < 10 ?
Examples:
x=12345678 ; length(x) = 8, so add "00" before x ===> x=0012345678
x=1234567 ; length(x) = 7, so add ...
0
votes
1answer
14 views
List post only under the category, exclude child category content
I wanted to list posts which are directly under a category and not inside the "sub category". In other words, I want to hide all the posts which are from "Sub Category" in the Parent category view.
...
0
votes
1answer
17 views
Adding Categories Through Function
I am creating a template theme for WP and am wondering if there is a way of the theme adding new categories to the db, through the functions.php upon activation of the theme.
It seems like a fairly ...
0
votes
1answer
18 views
SQL Bulk Move old posts by one author to another category
I'm looking to move a number of old posts by one author from one category to another category and was hoping someone could help me do this?
I figure the easiest way would be through an SQL command?
...
0
votes
0answers
10 views
set categories based on custom field
i have a xml feed coming into my wordpress site and what i need to do is create a function that automatically assigns categories based on the valus of 2 custom fields
so i have salaryband (name of ...
0
votes
0answers
11 views
categories to subdomains using .htaccess without plugin
I need to do the following thing
Mapping this subdomain live. mywebsite.com/something to mywebsite .com/live/something for examples :
www. live.mywebsite.com/ ==> www. mywebsite.com/live/ http:// ...
0
votes
1answer
15 views
How to get next previous category in same taxonomy?
Like WP get_adjacent_post function gives the next and previous post data based on the parameters i want to get the next/previous category data is there any WP built in function which does the right ...
0
votes
1answer
35 views
Delete old post with new post
Hope you can point me in the right direction, with a plugin or function.
With "Contact Form 7" logged in users post their info with "Form to Post" plugin.
Everything is front end.
It is a big form ...
0
votes
1answer
62 views
How to create a category and sub-category sorted blogroll with all posts?
I would like some help to post all the posts of my website into a blogroll sorted by categories and subcategories.
The end-result HTML I would like to see displayed would be something like this:
...
0
votes
0answers
18 views
Category ID is appearing
On the homepage, Category id (mydomain.com/?cat=12) is appearing instead of category name(mydomain.com/mycategory). How do i remove category id..? Permalink structure is well defined and on the top ...
0
votes
1answer
17 views
My custom query not detecting the correct category
For category.php my custom query code isn't displaying the posts from the correct category.
I have a parent category called 'Blog' and it can have any number of unknown children. With that in mind ...
0
votes
1answer
26 views
How do i hide categories from menus which don't yet contain posts?
I would like to hide a large number of categories from both the primary and secondary menus which have already been create however don't as yet contain posts.
Any PHP code i can use for this as ...
1
vote
1answer
18 views
Extracting post categories
I'm in the middle of assisting a colleague in reconfiguring a Wordpress database for use on another platform. The database is essentially details regarding all the posts and accompanying metadata, ...
0
votes
0answers
10 views
Filter by Author on Category Pages
I'm looking for a solution to filter/sort posts by author on category pages/archive pages, ideally by means of a drop-down menu.
I've searched the Wordpress plugin repository but cannot find any ...
-1
votes
0answers
21 views
Hyphens are causing a blank result
I'm having issues with hyphens in my slugs from a tutorial I'm trying to go through... http://wp.tutsplus.com/tutorials/theme-development/create-a-quicksand-portfolio-with-wordpress/ and I'm having a ...
0
votes
1answer
32 views
Matching usermeta at registration to categories of content
I'm trying to connect some user_meta data from registration form to some categories set up in admin to filter the presentation on the page. This one is tripping me up because the question has multiple ...
0
votes
0answers
20 views
WP current category - strange behaviour [closed]
I've use this code:
$current_id = get_query_var('name');
echo $current_cat;
$category_id = get_cat_ID($current_cat);
echo $category_id;
to get current page category number. Everything is working ...
0
votes
1answer
18 views
Category archive is displaying all posts rather than the specific category
Here is my loop code for index.php . I do not have an archive or category.php right now. This is very basic.
$temp = $wp_query;
global $wp_query;
$wp_query = new WP_Query();
...
0
votes
1answer
16 views
Re writing Category Argument
I have a theme which has a category argument, however its displaying them in the wrong order
<?php
$categories= get_categories('taxonomy=types&title_li='); foreach ($categories ...
1
vote
1answer
84 views
Get posts from sites in Multisite?
I'm trying to pull multiple sites posts. For example, I can pull out a single site
posts by a category and total posts 10.
But I'm trying to pull out both posts from two separate Multisite blogs 1 ...
-2
votes
0answers
13 views
How i change the name in wp_dropdown_categories
I am using the WordPress function wp_dropdown_categories to show the categories dropdown. But the name of select tag is cat. Now i just want to change that name, Any idea. Thanks
-1
votes
0answers
48 views
Sort post in a category alphabeticaly with the stick in that category on top?
I need to be able to sort posts in categories alphabetically with the sticky posts in that category listed first on top also sorted alphabetically.
Apple*
Banana*
Watermelon*
Coconut
Grape
Orange
...
-2
votes
1answer
13 views
Print out one of 2 post category [closed]
I've been trying for quite a few hours to get something to print out in loop:
post has 2 categories, one of them is prace (slug) and I need the other one printed. If it isn't too much to ask.
Tried ...
0
votes
1answer
12 views
Problem importing categories and sub-categories
I have an array with the categories and sub-categories I want to import to the "campsite-district-county" taxonomy.
My sub-categories are not being inserted with the correct parent. They're being ...
0
votes
1answer
35 views
How to change links in the 3 main categories, on widget category, to a javascript function call
I'd like to know..
How could I change my 3 main categories links, so they call a javascript function?
I'm using Snapshot Theme from WooThemes.
Here's the current state of the website:
...
0
votes
0answers
52 views
Dynamic Subcategories in dropdown list
How do I Create Dropdown list of subcategories?
Example:
Category1
-Subacategory1(dropdown list)
--SubcategoryA
--SubcategoryB
--SubcategoryC
-Subacategory2
-Subacategory3
my code ...
-2
votes
0answers
26 views
WP create menu items from all category and its sub category [closed]
i'm developing a theme which automatically use categorIES as menu item,
0
votes
1answer
42 views
Custom query with category exclusion and post-meta “whitelist”
I have two widgets, one shows News while the other shows everything except News (We'll call the second one Blog). The blog portion is currently working correctly.
The News posts are either ...
0
votes
1answer
14 views
Exclude a 'portfolio' custom category?
I have a custom post type called 'portcat' and I want to exclude one portcat category ('weather' - ID='5') from the page. I've tried 'category__not_in' => array( 5 ) but apparently this doesn't work ...
0
votes
1answer
16 views
Showing custom post type categories in the menu
here is my custom post type and category:
//Register nav
register_nav_menus( array(
'main_nav' => 'Main navigation'
) );
//Custom post types
add_action( 'init', 'create_post_type' );
function ...
0
votes
0answers
19 views
Run a query when in last category
Can anyone help? ive searched google but with no luck.
currently Accounts has sub categories but no posts
/accounts/ = /billing1/ + /finance/
Billing and finance have posts but don't want ...
0
votes
0answers
81 views
All cats and posts from a custom taxonomy
i'm not new to wordpress templating nor a master. So i've had a problem when i wanted to make a custom list showing all categories and posts under them with a custom taxonomy and post type, like:
...
0
votes
0answers
26 views
Get posts under a category with SQL
How can I retrieve posts under a category with plain SQL with out using WordPress native api's like get_pages?
My Wordpress table wp_terms contains a term named Restaurants.
I want to list the post ...
0
votes
0answers
18 views
Nestle post type under category WordPress
I have previously asked this question on the main Stack site but haven't received any answers so I figured I would ask it on this side.
I'm using a plugin called Easy Recipe that creates posts when ...
-1
votes
0answers
24 views
Getting “Error 404” instead of rest of products in category [closed]
I've created category links in my webshop, but when I press next page, I get "error 404"-page instead of rest of the products in the category.
Example:
url: http://md4s1307.keaweb.dk/shop/pants
1
vote
1answer
22 views
Make parent category not selectable when it has child categories
I'm trying to find a way of disabling the selection of the parent category within Wordpress 3.5.1 (post editor screen) only when that parent category contains child categories.
My structure:
...
-1
votes
0answers
30 views
Get most commented/popular posts in a specific category in Disqus
I want to get the most commented posts in a certain category, but using Disqus as comments system. Do you know how to do it or if it's possible?
1
vote
3answers
61 views
Add Class While on Current Post; wp_list_categories
The code below produces a sub-menu of child categories of the currently active parent category. This code also produces the child categories of the top parent category while viewing child categories ...
0
votes
0answers
21 views
How can i do a search for tags in a certain category?
I'm trying to search for a certain category with a tag, how can I do this via url?
For example: www.example.com/?cat=1&tag=tag1
how can i achieve this using parameters in the url?
0
votes
0answers
19 views
Add Custom Post Type Categories to General Categories
I've created three custom post types. I want them seen as general categories. I could not find a solution, can anybody help me?
Thank you.
0
votes
1answer
67 views
How to get permalinks with category base working with sub-categories
I ran into an issue with a site that needs the category base also included in the custom permalink structure. I know this is an issue and I have read many posts like this that gave me some insight...
...
0
votes
1answer
26 views
Category Descriptions - HTML?
Is it possible to allow HTML to be rendered in Category descriptions? My theme uses them quite a lot, and I'd like to style them better with images and links.
This seems to be do-able from what I ...
0
votes
1answer
38 views
How to display only one category in a custom post type?
I have a custom post type called 'portcat' and I want to display the results of only one portcat category ('games' - which has an ID of '3') on my page. The below code displays all of the categories ...
1
vote
1answer
92 views
Combine two taxonomies in a hierarchical tree
For example, I have WooCommerce products that have taxonomies:
brand (e.g. Converse, adidas, D&G) (taxonomy id: product_brand)
category (e.g. Boots, Sneakers, Sandals, Heels) (taxonomy id: ...
0
votes
0answers
31 views
Displaying only posts from a certain category on my custom page template
I want to create proper pages for my post categories, rather than just a default category page. So for example, I'm going to create a Video page and have a load of information about my videos, and ...
-1
votes
0answers
19 views
category widget in wordpress
I have about 2000 video post to be posted. and lot many no. of categories for those videos.
I just do not want the category list to keep growing on and making my page lengthier. Could anyone suggest ...
-2
votes
0answers
23 views
How i break an array and get a string with comma seperated [closed]
I have an array of categories id and i want a string with comma seperated so that i can put them in query.
$c1 = $_POST['cat1011'];
foreach ($c1 as $abc)
{
$catID = get_cat_ID( $abc ).",";
}
...
1
vote
2answers
48 views
Trying to find a way to query post like normal search would do. within search.php page
I have a costume search in a site i am making.
When a user search a certain term, i want to display category list with a count of how many posts are found with in that category.
I thought of a way ...


