• Resolved mirchifan

    (@mirchifan)


    Hello

    my problem is next: i have made custom post types “devices”, and some taxonomies for this type. but they are not displayed on front page in featured category, or with any other widget or shortcode.
    help me please

    regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mirchifan

    (@mirchifan)

    when i put custom post id or custom categories id to widgets or to shortcode it is doesn’t work

    sorry for my english

    Theme Author Richie KS

    (@rkcorp)

    the theme only work with normal category. not cpt tax or category.

    Theme Author Richie KS

    (@rkcorp)

    new version had filter on the featured category query. just choose any category and saved the theme option and add this to your custom functions.php or wp-content/meso-custom-functions.php

    let’s say you want a custom post type for first feat block.

    function meso_custom_featname() {
     $query = 'My Device';
     return $query;
    }
    add_filter('meso_featcat_name_one','meso_custom_featname');
    
    function meso_custom_featlink() {
     $query = 'http://yoursite.com/device/';
     return $query;
    }
    add_filter('meso_featcat_link_one','meso_custom_featlink');
    
    function meso_custom_featquery() {
     $query = 'post_type=device&showposts=5';
     return $query;
    }
    add_filter('meso_featcat_query_one','meso_custom_featquery');
    Thread Starter mirchifan

    (@mirchifan)

    thank you very much!
    so it’s mean that i cant add variable custom posts to sidebar for example?

    Theme Author Richie KS

    (@rkcorp)

    affaid you can’t for theme builtin sidebar featured cat widget. alternative wp plugin might be more convenient.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom post types not appearing on home page/’ is closed to new replies.