Close

Account

Documentation

Forum

Menu

sitefeed to load from category

  • Post count: 13
    rathasok7
    December 17, 2015 at 3:44 am #16990

    Hi,
    is there way i can set the sitefeed jeg_get_sidebar_feed() to load from a category instead of latest news?

    Post count: 2268
    Jegbagus
    December 18, 2015 at 1:49 am #17005

    hi rathasok7 yes it can. but you will need the code. you can find the code that control what content to shown on sidefeed from jmagz themes folder > lib > ajax-response.php > line 237, with function name jeg_get_sidebar_feed. You can modify the query to make it fit with your need.

    Thank you

    Post count: 13
    rathasok7
    December 19, 2015 at 4:03 am #17028

    ok. thanks.

    Post count: 2
    alexanderreay
    January 23, 2016 at 11:43 am #17928
    This reply has been marked as private.
    Post count: 2
    alexanderreay
    January 23, 2016 at 2:09 pm #17932

    Ok seemd ot have found out how:

    // and build other list
    $statement = array(
    ‘post_type’ => ‘post’,
    ‘post_status’ => array(‘publish’),
    ‘orderby’ => ‘date’,
    ‘order’ => ‘DESC’,
    ‘posts_per_page’ => $perload,
    ‘paged’ => $page
    CODE ADDED ‘catergory_name’ => ‘live’

    Post count: 2268
    Jegbagus
    January 25, 2016 at 1:38 am #17941

    great alexanderreay 🙂
    all wp query syntax you can read right here : https://codex.wordpress.org/Class_Reference/WP_Query

    Thank you

You must be logged in to reply to this topic.