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
0answers
21 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
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?
...
2
votes
1answer
375 views
Help with multiple dropdown tags search
I'm trying to build a search form that allows the user to choose certain post tags and filter through real estate listings. So far I have the form built but when I click the search button it brings me ...
0
votes
1answer
10 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
1answer
193 views
How can i display category title over thumbnail?
I am trying to implement a slider on my site but i cannot find out how to display the category for each post displayed. I want it to display over the thumbnail. is there a code i can enter to display ...
0
votes
1answer
392 views
Display posts in three columns by category
I've seen posts which probably answer this, but unfortunately the answers are all a bit technical without telling you where the code should go?
At the moment I have my posts directed to a blog page. I ...
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
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
188 views
Display all posts in current category
I am looking to create a behavior as shown in the following link:
http://www.javaexperience.com/java-role-of-serialversionuid-in-serialization/
Here all posts from the same category are being ...
0
votes
1answer
123 views
Show subcategories and hide posts or show posts if not exists subcategories
I'm trying to make a WordPress blog where in the index page only Parents Categories appear. In second page need to appear SubCategories and hide posts, if not exists SubCategories show posts for the ...
0
votes
1answer
218 views
How to Filter categories in the permalink structure
Using /%category%/ %postname%/ for the permalink I get a URL string of all the categories that the specific post is included in. I would like the categories in the url to be filtered down.here it is,
...
0
votes
2answers
79 views
Should I use “Categories ” or “Pages” for a WordPress Static Site (A non blog site)?
I want to use WordPress for a Company Site which is not a blog; that will have regular pages, such as "About Us", "our Products", "Our Services", etc.
What is the best way to use WordPress for this ...
0
votes
2answers
79 views
How to display a single(current) post from a category
How do I get the code below to display just the current post that corresponds to the current URL and not all the post from the same category? Barakadam, It works but it brings all the posts in the ...
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
64 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
2answers
187 views
Get unique post in parent category
I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
0
votes
1answer
143 views
How to view all posts (on site, not admin) that are uncategorized?
I had a horrible problem a long time ago that had me end up importing a backup of most of my posts.
I'm now using WordPress 3.3.2 and I would like to view all of the uncategorized posts from the site ...
0
votes
1answer
114 views
How to show custom static content at top of each category page?
I want to display custom static content, essentially an image and a small description, at the top of each category page (different for each category and sub category), displayed above a list of titles ...
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 ...
1
vote
1answer
142 views
Previous/next link to post in category, NOT tag?
On a single post page I have the following code after my loop:
<?php previous_post_link('« %link') ?> |
<?php next_post_link(' %link »') ?>
For some ...
0
votes
1answer
241 views
How to prevent parent being choosen in wp_dropdown_categories
I have a grand-parent-category with several parent-category. Each groundchild means a specific method to process later. Parents should not be selected, it merely means to group the children together.
...
1
vote
2answers
340 views
Combine Multiple Categories Into One URL Slug
I have a Wordpress website with 20+ categories. To make it easier to navigate I want to decrease the categories, but at the same time keep the original categories. In other words I want to be able to ...
2
votes
2answers
116 views
Rearranging posts based on categories
Hey everyone on Stackexchange!
I'm trying to find a way to prioritize posts based on a category in a loop, which is sorted by dates. All posts are grouped under their respective dates. The date ...
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
2answers
285 views
Best/Correct way to add an option to a category
I'm currently writing my first plugin, which will let the site admin/editor use a different image as a background/header for each post/page, and I would also like to have defaults for each category.
...
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
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
2answers
139 views
How to group the loop posts in a particular by author?
I have links going to category pages on a WordPress blog. These category pages show all the posts that are in that category and sub-categories. I want to group these lists by the authors.
I guess ...
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
2answers
2k views
Displaying custom post type on category pages but not on blog listings
I think this is a fairly simple issue but I haven't got my head around it.
Question: how do I get my custom posts to show only on the category archives, but not in the blog post listing page?
...
0
votes
1answer
132 views
Make a menu visible for a single category and it's content
I'm working on a site with 3 major sections. Therefore I want to create archives for each section and those archives should be visible only in the category page and it's posts.
At this point, I made ...
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 ...
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 ...
-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 ...
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
1answer
141 views
Redirecting specific category posts to subdomain
We have a WordPress site, which contains posts and pages with different categories. Now we moved a particular category posts into sub domain & we want 301 redirection so that every post from that ...
0
votes
1answer
136 views
Changing post category from dropdown
I am showing a list of posts on the front of my wordpress site which each have a dropdown next to them with a list of category's, which are pulled in as follows.
As you can see the form submit button ...
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 ...
0
votes
3answers
114 views
Let visitors post comments on category page
I'm looking for a way to let users comment categories on category.php, but I haven't been able to find one. Simple pasting didn't do the trick (didn't really expect it to.)
For clarification, I'm ...
2
votes
1answer
394 views
Set a category for a page
My current theme has a portfolio section where you can have an array items based on what category they are in. My problem is that I have several pages that I want to be in the portfolio section but ...
0
votes
1answer
141 views
Filter categories using tags
I have a website with the following categories:
Videos
Pictures
Stories
And I have a lot of tags like: Funny, Awesome, Mind Blowing, Crazy, etc.
Is there a way I could filter lets say: Videos ...
1
vote
1answer
77 views
Way to force media uploader use custom image size
I've implemented media uploader to my custom category image plugin and was wondering can I somehow force it use my custom image size I've set only for categories.
... So in screen shot above, I'd ...
0
votes
1answer
116 views
Category Template: Need to display different content on first page of archives
So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
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 ...
0
votes
1answer
222 views
how to display only one level subcategory in wordpress
This code using taxonomy catgery image plugin to display images for categories .this code display subcategories of main category in parent category page (category.php) . but i want to display only one ...
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
123 views
Any way to assign Post Categories and Tags to Links?
I would like to assign post categories and post tags to the links in my 'Links' section, and (ideally) remove the link categories feature since it would be redundant.
Anyone know how to do this?
