Support » Plugin: WP Tiles » Only first 5 posts show…

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m also only getting 5 posts when showing a category.

    Awesome plugin, thanks!

    I found a solution.
    In post.php (locate din wp-include) change number_posts to a higher number than => 5

    Plugin Author Mike Martel


    Hi guys, for what it’s worth, I won’t up this number in the current version of the plugin, to make sure an update won’t break the pages of people who have 5 posts per page on purpose. This’ll become an option at some point.

    For now, in your category.php file, update the code to:


    Replacing 20 by the desired number, of course.


    Hi Mike

    I’m not fully sure if I’m correct, but if you specify any attribites for categories like


    wp-tiles shows last posts, not category posts, because of empty($atts) check:

    // If category archive, show
            if ( empty ( $atts ) && ( is_category() || is_single() ) ) {
                $categories = get_the_category();

    ok o got to the solution

    first there is a defect in shortcode_atts_rec (attributes reversed):
    $att = $this->shortcode_atts_rec ( $options[$k],$att );

    then i think the line in wp_tiles should be:
    if ( is_category() || is_single() ) {

    finally $atts are expected to be an array so in category.php:
    the_wp_tiles(array('template'=>'Plain', 'posts_query'=>array('numberposts'=>4))

    array of attributes, of which one is post_query which is array itself with query params

    last thing
    in the_wp_tiles:

    $atts['posts_query']['category'] = implode ( ', ', $cats );
    instead of ‘cat’

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only first 5 posts show…’ is closed to new replies.