How do I customize the "Latest News" source?

  • Post count: 6
    June 29, 2016 at 5:01 pm #20992

    On my home page, I have a Block 3 News widget which I have set to “latest News”. I need to customize the WP_query for it, but I can’t seem to find which code is feeding the posts into this widget. I have many custom post types that I need to add to the “latest news” so that it reflects all of my newest content.

    Thank you!

    Post count: 2749
    July 1, 2016 at 12:54 am #21014

    hi richardmathis, if you need to change query for your view, please go to jmagz-plugin > lib > vc > view.php

    you can find right there this function : jeg_build_post_statement (this is the function that control query). and you can find it at jmagz-plugin > lib > plugi-helper.

    Thank you

    Post count: 6
    July 1, 2016 at 4:54 am #21025

    ok, found it and was able to modify it to support custom post types how I wanted.

    One issue I’m having now, is that the get_the_category() function isn’t working properly for anything except posts. Where is that function so I can modify it?

    Post count: 2749
    July 2, 2016 at 1:24 am #21039

    yes. you can try to use get_the_terms


    Thank you

You must be logged in to reply to this topic.