Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Modify query arguments

Discussion in 'Misc WordPress Requests' started by erikalleman, Mar 17, 2018.

  1. erikalleman

    Guest

    Modify query arguments, by erikalleman

    https://wpexplorer-themes.com/total/snippets/total-grid-query-filter/

    The query in this snippet shows items from the same category in a WPBakery (formerly Visual Composer) post grid module added to portfolio posts.

    I need it to show items from the same category of the current post (normal post, not portfolio post) in a post grid module added to the sidebar.

    While this specific snippet is for the Total theme, the query tweak is independent of the theme, so this question is of common interest for the community.

    How do I modify the query to suit my needs?

    Thank you.

    Modify query arguments
     
    #1

Share This Page

Monarch Social Sharing Plugin