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
2answers
46 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
52 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
22 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
34 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
11 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
18 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
2answers
42 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
40 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
171 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
20 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
27 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
29 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
21 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
20 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 ...
0
votes
1answer
36 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
28 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
25 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
18 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
175 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
1answer
19 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
19 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
43 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
119 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 ...
0
votes
1answer
73 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
27 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
25 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
20 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
88 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
33 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
20 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
vote
1answer
39 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
vote
3answers
114 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
23 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
26 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
97 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
35 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
55 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
145 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
43 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
vote
2answers
68 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 ...
0
votes
0answers
53 views
How to exclude 2 Portfolio Categories from page?
I want to exclude 2 Portfolio categories (IDs 4 & 23) from a page using the code below but it still displays all categories. Similar code works for 'Posts' but not for 'Port' - can anyone see what ...
0
votes
2answers
75 views
How to modify category.php to list posts alphabetically?
As the title says. Would be grateful for your help. Thank you.
0
votes
1answer
152 views
load more posts by category
Well as you can see here im doing a load by category in every tab i have
and show a total posts of 10 by each tab i want to setup once the 10 posts are done.
i want to add a load more button to the ...
0
votes
1answer
34 views
Link categories to last post
I am using wp_list_categories() to show all my categories. But I would like that the child categories link to the last post of that category. For example:
<ul>
<li><a ...
0
votes
0answers
30 views
How to display category with post title in frontpage of the custom post type
Hi,everyone.Sorry my bad English,and I hope you can understand what I mean.
In my WordPress theme, I craeted a Custom post type named "Portfolio", Because I want show the single category with list of ...
0
votes
0answers
46 views
Show all posts grouped by category
I would like to show in a page all the posts grouped by category.
Example:
Category A:
Post 1
Post 2
Post 3
Category B
Post 1
Post 2
Post 3
How can I do it?
0
votes
0answers
26 views
How to populate a Wordpress install with a lot of categories, quickly?
I'm looking at starting a new project, but I've not done anything like this before. I'm hoping someone with more experience will be able to offer me advice on this one.
The site revolves around ...
0
votes
1answer
43 views
Display posts from a category
I am trying to display a bunch of posts from a single category on the category page, using multiple loops.
<div id="featured-content" class="clearfix">
<?
// assign the variable as current ...
0
votes
1answer
28 views
Disable custom taxonomy on admin bar
I created a custom taxonomy and i want to disable the taxonomy to show on the admin bar below my custom post type. How do i disable it?.
The reason i want to disable is because the user is not ...

