Support » Fixing WordPress » thumbnail gallery layout

  • Resolved ronchicago


    seeking a layout that displays thumbnails with captions that resembles a thumbnail gallery. images are displayed most recent first from left to right.

    1) i was able to do this ok with four categories with the following code which only shows the latest post for each of the four categories =

    	$cat = 251;
    	while (have_posts()) : the_post(); ?>

    2) each of these categories has children and i wish them to show also and most recent first within the parent. when i call up the children the kids go straight down instead of across the page like their parents ( does this surprise anyone 😉 )
    the following code to call the children =

    	$cat = 251;
    	while (have_posts()) : the_post(); ?>

    3) each category is within their own div.
    4) here is the css =
    .entry-cat {
    float: left;
    width: 25%;
    margin: 0 30px 15px 0;

    5) any ideas why the kids are misbehaving?

Viewing 1 replies (of 1 total)
  • after trial and error the conclusion is that the css is instructing a “div” class to float from left to right. but the dynamic-created children are not residing in their own div and do not have any instructions.

    any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘thumbnail gallery layout’ is closed to new replies.