Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • function myfeed_request($qv) {
    	if (isset($qv['feed']))
    		$qv['post_type'] = get_post_types();
    	return $qv;
    }
    add_filter('request', 'myfeed_request');

    I use this code and it worked! I have one issue, I have several post type and I want to exclude one of my post type. I appreciate your help.

    Thanks

    Thread Starter donalyza

    (@donalyza)

    I don’t think that’s the right code for the link for custom post type, I’m not sure but isn’t it that works for taxonomy. Anyhow, I really appreciate your effort in answering my concern.

    donalyza

    (@donalyza)

    you may want to try this.

    <?php echo nggShowGallery(1,null) ?>

    1 being the nextgen id gallery.

    Thread Starter donalyza

    (@donalyza)

    I tried using this code inside my functions.php file

    define(SINGLE_PATH, TEMPLATEPATH . '/single');
    
        add_filter('single_template', 'da_single_template');
    
        function da_single_template($single) {
        global $wp_query, $post;
    
        foreach((array)get_the_category() as $cat) :
    
        if(file_exists(SINGLE_PATH . '/single-cat-' . portfolio . '.php'))
        return SINGLE_PATH . '/single-cat-' . portfolio . '.php';
    
        elseif(file_exists(SINGLE_PATH . '/single-default.php'))
        return SINGLE_PATH . '/single-default.php';
    
        endforeach;
    
       	return $single;
    
    	}

    Apparently the code above is not working. All post shows the portfolio template and not the default. Take note that I have my original single.php in the template folder. Inside the template folder is another “single” folder with the single-cat-portfolio.php and single-default.php.

    anyone care to fix this code?

Viewing 4 replies - 1 through 4 (of 4 total)