mateusw3c
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Easy Photo Album] Show all albums on one page😉
Forum: Plugins
In reply to: [Easy Photo Album] Show all albums on one pageIn functions.php
add_theme_support('post-thumbnails',array('post', 'page', 'easy-photo-album')); if ( function_exists( 'add_image_size' ) ) { add_image_size( 'small_image', 220, 149, true); add_image_size( 'medium_image', 294, 184, true); add_image_size( 'big_image', 300, 300, true); }Forum: Plugins
In reply to: [Easy Photo Album] Show all albums on one pageI solved my problem in another way. I’ve listed the posts that post_type on a page and enable post_thumbnail each post … was even better.
<ul class="albuns-list"> <?php query_posts(array( 'post_type' => 'easy-photo-album', 'orderby' => 'date', 'post_status' => 'publish', 'order' => 'DESC', 'showposts' => 10)) ;?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post() ?> <li> <a href="<?php the_permalink();?>" title="<?php the_title();?>"> <?php if ( has_post_thumbnail()) the_post_thumbnail('small_image',(array('title' => ''. $title .''))); ?> <h3><?php the_title(); ?></h3> </a> </li> <?php endwhile; endif; ?> </ul>Forum: Plugins
In reply to: [Easy Photo Album] Show all albums on one pageForum: Plugins
In reply to: [Easy Photo Album] Show all albums on one page
Viewing 5 replies - 1 through 5 (of 5 total)