Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Sebastien Couture

    (@scouture)

    Can you suggest anything for better managing custom fields. I’m already using Custom Field Templates.

    The problem I seem to be having is that the keys don’t stay put. If I knew that Amazon was always $price[0] and Coles $price[1], I could manage that but I don’t know if I trust that they will stay in place.

    Thanks
    Seb

    Thread Starter Sebastien Couture

    (@scouture)

    MichaelH, you know everything.

    Thanks

    Seb

    Thread Starter Sebastien Couture

    (@scouture)

    Yes thank you. I know I could use /%category&%/%postname%.html to achieve exactly what I’m trying to. However I want to hide the category base. The Top Level Categories plugin is installed to do this but it doesn’t allow to add the post name to a category link.

    Is there an other solution. Perhaps a hack.

    Sebastien

    Thread Starter Sebastien Couture

    (@scouture)

    I’ve changed the code to this rather to exclude the categories that I don’t want. This way the categories do in fact get removed and i see the stiky post, however WP seems to think I’m always on the homepage. For instance, if I go to a category archive, I still get the same posts as I see on the home.

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    	$post_per_page = 7;
    
    	$exculde = array_merge(cat_and_kids(20), cat_and_kids(21), cat_and_kids(366));
    
    	$args=array(
    		'category__not_in'=>$exculde,
    		'paged'=>$paged,
    		'showposts'=>$post_per_page
    	);

    cat_and_kids() is a function I created that puts a category ID and all those of it’s children in an array.

    Forum: Plugins
    In reply to: Get specific category name
    Thread Starter Sebastien Couture

    (@scouture)

    Thanks, that just simplified a lot of things for me.

Viewing 5 replies - 16 through 20 (of 20 total)