I am trying to pull in a styled sidebar specific to the category. I have the following code which works, but it is pulling in BOTH my new sidebar and the default. What am I doing wrong here?
From category.php
<?php get_sidebar();
if ( in_category('39') ) {
include(TEMPLATEPATH . '/sidebar2.php');
} else {
include(TEMPLATEPATH . '/side...
I've created a category to add methods to NSManagedObjectModel. Everything works fine except Xcode keeps throwing warnings about NSManagedObjectModel not implementing the methods. How can I force it to recognise the method?
...
I'm developing a kind of template with Excel 2007. Users will use it to create records which fall in 3-level categories. A user should be able to create a new category, specify an existing category or not specify one. A record may belong to multiple categories.
I'm wondering what my best choice is to present the category structure to us...
I have X posts about various people. I want to have each person post have a subset of associated posts. Is there any way to do this?
I understand people could be categories, but then I run into a problem of not being able to allow for textual data associated with the people (categories don't have a post-page equivalent).
Thanks in adva...
Hello,
with
<?php
if (is_category())
echo single_cat_title();
?>
i can show up the current category title..
how can i insert the tag single_cat_title() into:
<?php
$recent = new WP_Query("cat=10&showposts=4"); while($recent->have_posts()) : $recent->the_post();
if (in_category(10) && in_category(**Insert Here*...
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 want multiple categories to one item.
...
Hello!
I want to use tags in my site. How to handle the tags most efficiently?
Is it OK to put every tag in a table (like categories) and than in the post just reference them with their id? (like in wordpress)
...
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 );
?>
My problem is that it includes /category/ in the url, whic...
Hi all,
I am calling a block multiple times in the footer of my site as follows:
<reference name="footer">
<block type="catalog/navigation" name="footer.category.occasion" as="cat_occasion">
<action method="setTemplate"><template>catalog/category/menu.phtml</template></action>
<action method="setData"><name>categor...
hi
i create the plugin to add image to each category,
i want to upload image at time of add category and also in edit category,
also in list of category i want to retrieve each category name with image
thanks in advance
have dream day
...
In WordPress plugin coding, if I have two categories (cars and gardening) and I want to always exclude gardening from all queries, what is the intercept (hook or other trick) I need to do to do this? I need to always exclude gardening whether it be via search, tag cloud widget, comment widget, calendar widget, and any other portion of th...
How do I restrict all WordPress widgets to a given category? Such as, have a popdown listbox on my sidebar that lets me choose a bird category and all the widget data on that sidebar stick with that given bird category. I'm thinking I need some kind of filter with add_filter() but don't understand the process. The docs on this are incomp...
I have several categories that I use in my Grails plugin. e.g.,
class Foo {
static foo(ClassA a,Object someArg) { ... }
static bar(ClassB b,Object... someArgs) { ... }
}
I'm looking for the best way to add these methods to the meta-classes so that I don't have to use the category classes and can just invoke them as instance me...
I've got several different classes in my code utilising identical methods -- resulting in a lot of duplicated lines -- and I recently found out about adding Categories which promises an effective solution to the problem. To give one of the smaller examples, my previous methods were (typically) called in the traditional way like this:
if...
hi,
i want to remove a category image from a content section and let the subcategorys be displayed with their category images in a small:
http://magento.hamburg-eyewear.de/index.php/eyeglasses.html
the top category should be removed and the two subcategory underneath should be small images. how can i fo that?
thank & regards.
...
I created an NSScanner category method that shows a leak in instruments.
- (BOOL)scanBetweenPrefix:(NSString *)prefix
andSuffix:(NSString *)suffix
intoString:(NSString **)value
{
NSCharacterSet *charactersToBeSkipped = [self charactersToBeSkipped];
[self setCharactersToBeSkipped:nil];
BOOL ...
Hi, All.
I use LineChart in Flex with horizontal category axis and I need drop duplicated category label on the chart.
The data I use are like that:
{Product: "C1", Store: "S1", Profit: "1500},
{Product: "C2", Store: "S1", Profit: "1000},
{Product: "C3", Store: "S2", Profit: "800},
{Product: "C4", Store: "S2", Profit: "1200},
{Product:...
I'm currently building a semi-small ruby app for a project. The problem I'm currently facing is the following:
I want to be Able to fit the Article into the Categories. I've already accomplish this by having two models. An article model with a foreign key of category_id and my Category model with the name of the category. With a has_one...
I have a static library (let's call it S) that uses a category (NSData+Base64 from MGTwitterEngine) and a C library (MiniZip wrapped by ZipArchive, a mm file).
This static library is used in an iPhone 3.x project (let's call it A). To be able to use the MiniZip library I included its files in project A as well as the static library S. I...
Hello,
I am newbee for Magento i want to create alphabetical search for each category in magento is there any way to do this?
Example : For Categories Like: Men's - Women's
In womens Page There some section in Middle of page or sidebar where all the Alphabets like # & A-Z if visitor click on A so all product start with A under womens ...