Support » Plugin: Taxonomy Images » [Plugin: Taxonomy Images BETA] Pagination Taxonomy Images Loop

  • I am using the piece of code that displays all taxonomy images on a category.

    $cats = get_categories();
    foreach ( $cats as $c ) {
        $url = get_category_link( $c->term_id );
        $img = $taxonomy_images_plugin->get_image_html( 'detail', $c->term_taxonomy_id );
        if( !empty( $img ) )
            print '<a href="' . $url . '">' . $img . '</a>';
    }

    I currently have 100+ categories and more will be added, so I am wanting to possible do pagination so the page doesn’t become massive in size and a drain on the database.

    Would anyone give me an example on how I would do this? I am not a complete noob at PHP but not the best either.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Taxonomy Images BETA] Pagination Taxonomy Images Loop’ is closed to new replies.