Hi everyone, I have a ClassiPress WordPress theme, and want to change how the ads categories are selected when posting an ad.. The categories drop-down is currently formated this way: Parent category 1 -Subcategory 1 -Subcategory 2 -Subcategory 3 -Subcategory 4 Parent category 2 -Subcategory 1 -Subcategory 2 -Subcategory 3 -Subcategory 4 I want to separate the subcategories from the parent categories, so that when a parent category is selected, its subcategories will populate..
Articles similar to Categories Select Chain in post submit form for a WordPress theme:
Problem with selected subcategory when editing Category items
I want to item's subcatory selected when editing category:
PHP Code:
<?php
function categoryFormEdit()
{
$ID = $_GET['id'];
$query = "SELECT * FROM category WHERE id= $ID";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$subcat = $row['subcat'];
$text = '<div class="form">
<h2>Add new category</h2>
<form method="post" action="?page=editCategory">
<ul>
How to Order Categories by Most Recently Updated
WordPress has standard functions that are part of it’s core for displaying data such as lists of blog categories or pages. To display categories, it has wp_list_categories function, where You can order the categories by ID, name, slug, count or term_group.
Ok, I want more option for ordering the categories, I want the categories ordered by most recently updated. Most recently updated I mean, category that has the latest post will display first in the list.
You may be interested in the following WordPress tips related articles as well.How to: List empty categories in WP category list - LineshJose.Com
Basically, WordPress doesn't lists the empty categories in it's category list. Then how to show empty categories in category list?. In this note I'd like to share a simple script for this problem...How Online Reviews are Affecting Local Businesses
For restaurant and small business owners a bad review in the local paper was bad enough. Now they have to worry about bad reviews online. Review web sites form an entire subcategory and since reviews turn up when users search they can contribute to making or breaking a business. This article not only explores the trend but shows why it s a cause for concern especially in the case of Yelp....
GoGrid Cloud Center Connect Cloud and Dedicated Servers on Your Private Data CenterLots of categories and sub categories. Best navigation system?
I will be building a product review site. It could be any product in any category you can think of.
The home page (landing page) should display all the top categories. However i don't know how many categories I will have in the beginning. The number will expand over time to tens or even hundreds. So it's going to be huge.
Design Pattern for a Forum
I'm scratching my head trying to find the proper design pattern to implement the display of forum categories. Maybe I'm making it too hard. Is this simply a nested set? Any forum category page should show a list of all sub categories in what I would call a typical forum home page layout. I don't want to make a query for the main category and then a query for each category to find the sub-categories.
Also, When displaying a category or a sub-category, I will want to pull information from the last post as well. Is it best to retrieve all of this in one query or should I iterate through each sub-category?
My goal would be to populate the home page of a forum with one query to display the category and sub-categories as well as individual post information.limiting categories whose postings show on blog page
how do i select a specific category that should be the only category that lists posts on my blog page?
for instance, if you look at this blog page (http://bandit4x4.com/wordpress/blog/), its showing both the postings from my many product categories and the postings from my "Offroading Stories" category.
How do I just limit it to the "Offroading Stories" category???
