Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Display based on get_option()

  • Resolved njbebop



    We currently have a WP E-commerce store running and I am trying to get the plugin to retrieve products based on it’s featured sticky. Basically it’s an option called “sticky_products”.

    I currently have a script that runs fine on the page in question, but when I try to configure the plugin to do it, it breaks.

    Here is basically what I am trying to do….

    $sticky = get_option( 'sticky_products' );
    echo do_shortcode('[ajax_load_more post_type="wpsc-product" post__in="'.$sticky.'"]');

    Is there any way I can get something like this to work?


Viewing 1 replies (of 1 total)
  • I figured this out, I wasn’t thinking.

    For anyone else with this issue, here is how I solved it…

    $sticky = get_option( 'sticky_products' );
    foreach($sticky as $prodid){
    echo do_shortcode('[ajax_load_more post_type="wpsc-product" post__in="'.$postin.'"]');

Viewing 1 replies (of 1 total)
  • The topic ‘Display based on get_option()’ is closed to new replies.