Ask the community

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

Couponpress home page

  • riswan
    riswan
    Newbie 25 points
    July 14, 2013 at 7:38 am

    i’m sorry i’m not a programer ,, i don’t know how to change query string “feature” to show category post ..

  • riswan
    riswan
    Newbie 25 points
    July 14, 2013 at 7:40 am

    meta_key=featured&meta_value=yes&posts_per_page=25 is replaced with what ..?

  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points
    July 14, 2013 at 9:10 am

    meta_key=featured&meta_value=yes&posts_per_page=25

    Add ‘&cat=nameofyourcategory’ so if your category name was ‘cars’ the query would look like this:

    meta_key=featured&meta_value=yes&posts_per_page=25&cat=cars

    Kind regards,

    Richard
    _____________________________________________________________________
    Wide range of PremiumPress and WordPress Plugins and add-ons
    PremiumPress customisation services and Website Design
    Selection of PremiumPress Child Themes

  • riswan
    riswan
    Newbie 25 points
    July 14, 2013 at 9:51 am

    hai ricahrd…. that not working… can i show without “featured” just category..?

  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points
    July 14, 2013 at 10:07 am

    OK, try this one:

    category_name=yourcategoryslug&posts_per_page=25&orderby=rand

    For more different parameters and their use look here:
    http://codex.wordpress.org/Class_Reference/WP_Query

    Kind regards,

    Richard

  • riswan
    riswan
    Newbie 25 points
    July 14, 2013 at 10:47 am

    done,,, just use this “cat=id” :) thanks

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 14, 2013 at 1:00 pm

    :)

  • riswan
    riswan
    Newbie 25 points
    July 16, 2013 at 2:28 pm

    hai mark… and what the code for show “Popular coupon ” only..?

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 16, 2013 at 2:43 pm

    popular would be determins by the amount of hits

    so its;

    meta_key=hits&order=desc

  • riswan
    riswan
    Newbie 25 points
    July 16, 2013 at 3:29 pm

    at “Basic Corousel” that not working..? that code show latest coupon, not showing popular…

  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points
    July 16, 2013 at 8:44 pm

    The query string Mark provided is not complete. The string should look like this:

    meta_key=hits&orderby=meta_value_num&order=desc

    Kind regards,

    Richard

  • riswan
    riswan
    Newbie 25 points
    July 17, 2013 at 2:58 am

    thanks Richard, that workig :)

  • riswan
    riswan
    Newbie 25 points
    July 17, 2013 at 4:45 am

    my store list not yet indexed by google, but my categories is done .. what is in the index so long or maybe there is something wrong ..?

  • Mark Fail
    Mark Fail
    Super Guru 12,822 points
    July 17, 2013 at 5:39 am

    Google indexing can take upto 3 months.

  • riswan
    riswan
    Newbie 25 points
    July 18, 2013 at 1:10 pm

    and what the code for show “Popular coupon in special category” ..? :) sorry i’m not a programer… :)

Viewing 15 posts - 1 through 15 (of 18 total)