Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Featured/Highlighted Post in Widget

  • Paul
    Paul
    Newbie 19 points
    July 21, 2013 at 3:47 pm

    Hi

    Would like to check if we can create a widget that retrieve only Featured/Highlighted listings rather than just recently added listing. is there any way to do it??

  • Mark Fail
    Mark Fail
    Super Guru 12,845 points
    July 21, 2013 at 4:00 pm

    yes you can, the query is open.

  • Paul
    Paul
    Newbie 19 points
    July 21, 2013 at 4:51 pm

    Okay, is there a way to make it automatic? when a new featured/highlighted listing is being submitted by a lister, the widget can automatically refreshes itself?

  • Mark Fail
    Mark Fail
    Super Guru 12,845 points
    July 21, 2013 at 5:05 pm

    the query string in the new responsive theme can be set so that it will auto show newly added lisiting, just orderby the post ID or date

  • Paul
    Paul
    Newbie 19 points
    July 21, 2013 at 5:16 pm

    I m on the directorypress, seems like it is not the responsive theme. It is different right?

  • Paul
    Paul
    Newbie 19 points
    July 21, 2013 at 5:20 pm

    Anw mark, I used this –

    meta_key=featured&meta_value=yes

    on the custom query and it solved the issue. Thanks!

  • Mark Fail
    Mark Fail
    Super Guru 12,845 points
    July 21, 2013 at 5:31 pm

    :)

  • Gary
    Gary
    Newbie 6 points
    July 29, 2013 at 3:27 pm

    Mark,

    I’m using the Directory Press Responsive.

    I want to know two related things.

    1. What query string would I add so that it will display “Featured Listings” instead of “Recently Added” on the home page?

    2. And for either “Recently Added” or “Featured Listings”, how can I limit the number of listings to show on the home page? What query string would I add for this, either along or in addition to making it display featured listings?

    Thanks,
    Gary

  • Mike
    Mike
    Senior Member 130 points
    August 20, 2013 at 1:03 am

    Not sure if understand all this query stuff

    Exactly what should I put in the query string field on the home page slider if I want just featured listings to appear on the slider?

    What is the purpose of the taxonomy field? Do I select listings together with the query string?

    a few examples should suffice.

  • Mark Fail
    Mark Fail
    Super Guru 12,845 points
    August 20, 2013 at 1:35 am

    Gary

    1. meta_key=featured&meta_value=yes
    2. meta_key=featured&meta_value=yes&posts_per_page=10

    Mike its all WordPress;

    http://codex.wordpress.org/Function_Reference/query_posts

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