-
YAUNParticipant
Hi, like many others, this is the chosen theme. Need help with the following item. Theme is set for Gallery on the home page view-perfect. However, subsequent pages (not posts) using WordPress gallery display only show 4 images. I don’t know how to apply the post types of “categories”, category view, tag view, etc. which allow for the blog layout, to a page gallery. Of course, if I switch the home page to blog, then all images in a given gallery show up on subsequent pages. So is there a way to accomplish the desired result: Home Page=gallery; subsequent pages = blog image layout? TIA.
YAUNParticipantIn an attempt to do more than just report on this, I found this section of code in functions.php:
function minimatica_paged_posts( $query ) {
if( (
( $query->is_home() && ‘gallery’ == minimatica_get_option( ‘homepage_view’ ) ) ||
( $query->is_category() && ‘gallery’ == minimatica_get_option( ‘category_view’ ) ) ||
( $query->is_tag() && ‘gallery’ == minimatica_get_option( ‘tag_view’ ) ) ||
( $query->is_author() && ‘gallery’ == minimatica_get_option( ‘author_view’ ) ) ||
( $query->is_archive() && ‘gallery’ == minimatica_get_option( ‘archive_view’ ) )
) && ( ! is_single() )
)
$query->set( ‘posts_per_page’, ‘4’ );
}
endif;
Being something less than a php pygmy, I think this says what I want to work should work because: a) images are not on the home page (and so home page being set to gallery is only “half a truth”!); b) rest of items are set to ‘blog” (although I don’t think that matters as they apply to posts). However, putting in some crude dumps on $query seems to show that there are two calls made to this function. The first accurately ids the page as not being home but the second ids the page as home and I think this is what causes the function to fail. Hope this is of some help…
You must be logged in to reply to this topic.