Forum: Premium Settings

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Premium Settings premium extension please open a new premium support ticket.

[Not resolved]custom query in results.php

Home Forums Premium Settings custom query in results.php

This topic contains 3 replies, has 2 voices, and was last updated by  Laura Camellini 2 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #53417


    hi, i have a custom post called “xpr” , when a user start a search i want display only the post with
    published date < 7 days, and in alternative (other request) i want also order the post with priority for post published in last 7 days, how i can make this ? can you give me a filter hook ? and a example of how work it ?
    i have found some filter example apply_filters( 'gmw_pt_meta_query', $meta_args, $this->form )

    but i don’t understand if this replace the default query argument.

    PS. in my website use also premium setting addon




    hi, you can’t help me ?


    Laura Camellini

    This function seems to be correct:
    apply_filters( 'gmaps_gmpt_form_before_posts_query', $this->form );

    Taken on this forum topic, works with Global MAp


    Laura Camellini

    Ok This seems to have worked, code:

    add_filter( 'gmw_pt_search_query_args', 'gmw_modify_query_by_date', 10, 2 );


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

You must be logged in to reply to this topic.