|
My blog's main menu is made of the categories, displayed via the wp_list_categories function.
If i click on one of the categories, the current category is highlighted in the category menu, and the list of articles inside that category are listed. Everything...
Started by pixeline on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Is providing the category list for both the category page and the post page? The code might be within; $currentcategory = '¤t_category='.$myCat; } wp_list_categories('depth=1&title_li=&orderby=id&exclude....
|
|
What's the best way to generate HTML which has a heading for each Category, and Products under that category in a Django template?
I toyed with the idea of having a passing a dictionary, or an ordered list...
Started by geejay on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Used a sorted list in the view code,
sorted(dom_obj.objects.all(), key=lambda d: d.sort_key/#regroup
With it you could do something like this:
{% regroup products by category as products_by_category %} {% for c in products_by_category....
|
|
Hi there, I'm building a Magento store and want to be able to display a list of categories and have each category link to its own page.
I have a 'Brands' category with an ID of 42 and I want to display a list of the sub-categories and ensure that each...
Started by Neil Bradley on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I typically use this in app/design....
:)
If you're comfortable editing your theme, this code snippet will bring you a list of all sub-categories of the current category (from the session, so this should work anywhere in your theme).
|
Ask your Facebook Friends
|
Hello
I have 3 tables:
category doesnt matter
item2cat: itemID|catID
item: id|name|desc
I want to list the items that are in the given category, but I don't know how to do it in a simple way. (With PHP and MySQL)
I need this table-structure because I ...
Started by Richard Mre on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Item.desc FROM item INNER JOIN item2cat ON item.id = item2cat.itemID WHERE item2cat.catID = [category_id JOIN item2cat ON item.id = item2cat.itemID INNER JOIN category ON item2cat.catID = category.id WHERE category.id IN ( [category....
|
|
I need to link to a category in my wordpress site. The following code works, somewhat:
<?php // Get the ID of a given category $category_id = get_cat_ID( 'People' ); // Get the URL of this category $category_link = get_category_link( $category_id )...
Started by Matrym on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Look here Template Tags/wp list categories « WordPress Codex for the template....
I don't understand what you want to do.
I found a plugin that does work with 2.9:
http://wordpress.org/extend/plugins/wp-no-category-base without a plugin.
|
|
I want to create a page in Magento that shows a visual representation of the categories.. example
CATEGORY product 1 product 2 ANOTHER CATEGORY product 3
My problem is, their database is organised very differently to what I've seen in the past. They have...
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
However, I grepped through the Mage codebase with
grep -i -r -E 'class.+?category (Mage_Catalog_Block_Seo_Sitemap_Category)
$helper = Mage::helper('catalog/category'); $collection'
Which returned....
A list of categories.
|
|
I want to display the linklist widget only on a certain category.
The current way the sidebar is fetched is:
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1))
Which doesnt give me a say in the calling of the links widget. If i put an if ...
Answer Snippets (Read the full thread at stackoverflow):
To print the Category you are on use the_category(' '); Example : <p>Categories: <?php the_category(' '); ?></p> Also have a look at the Documentation http://codex.wordpress.org/Template_Tags/the_category....
|
|
I would like to generate all posts that has say a category name of X and a tag name of Y with in wordpress.
query_posts('cat=X List&tag=Y');
I above works to an extent but not fully since I need to repeat this list and just echo the_title(). The problem...
Started by CrazyCoderMonkey on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
'List Category Posts' allows you to just drop in one line of code$my_query = new WP_Query('category_name=cool&tag=hot'); while ($my_query->have_posts()) : $my into the page or post you want ....
Be able to do the trick for you.
|
|
We are constructing an application that will be interacting with Exchange 2007 calendar functions. We will be using the Outlook Redemption Objects dll’s. Our design relies upon the outlook 2007 meeting Category features. We would like to ensure that specific...
Started by ira lustman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
And not on the exchange server.Before Ol 2K7, these were stored in registry so I doubt if category master list can be set.
|
|
I'm using the Textpattern CMS to build a discussion site-- I have a firm grasp of XHTML and CSS, as well as Textpattern's template language, but PHP and Javascript are a bit beyond my cunning.
On the input form to begin a new topic, users need to select...
Answer Snippets (Read the full thread at stackoverflow):
If possible, you should create a page that that returns a list.
Category 1</option> <option>Category 2</option> <option>...</option> the "select to array" stuff.
|