Cant get the pagination to work properly.
just updated marketpress and frame market. im using shortcodes from my page template. pagination is set to on and im trying to paginate a tag of global products. I was under the impression that if i had a shortcode like this [mp_list_products paginate="true" page="1" per_page="10" order_by="price" order="DESC" tag="downloads"] in my page template, i would render 10 products with a next and a previous navigation. is this the case? or is something more involved? Where is this documentation.

  • dfstorm
    • Site Builder, Child of Zeus

    well im happy to not use a shortcode. I could use a plugin or use some standard wordpress pagination code. I was palying with the code below for ages with know success. Aaron, you look like a bloke who is handy with php.. What is wrong with it? i get confused by the $args = array();. is there something more i need to do with that?

    <?php if (is_page ('for-boys')) {
    		$args = array();
    		//check for paging
    		if (get_query_var('paged'))
    		  $args['page'] = intval(get_query_var('paged'));
    		    'echo' => true,
    		    'paginate' => true,
    		    'page'=> '',
    		    'per_page' => 2,
    		    'order_by' => 'date',
    		    'order' => 'DESC',
    			'category' => '',
    		    'tag' => 'boys',
    				'show_thumbnail' => true,
    				'thumbnail_size' => 150,
    				'context' => 'list',
    				'show_price' => true,
    				'text' => 'excerpt',
    				'as_list' => false
    			<?php mp_global_products_nav_link(array(
    				'echo' => true,
    				'paginate' => true,
    		    'page'=> '',
    		    'per_page' => 2,
    				'category' => '',
    		    'tag' => 'boys',
    				'sep' => ' — ',
    				'prelabel' => __('« Previous', 'mp'),
    				'nxtlabel' => __('Next »', 'mp')

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.