Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter sergiust

    (@sergiust)

    well gets messed up on chrome. Man … i don’t know what to do ..

    Thread Starter sergiust

    (@sergiust)

    well if u press on ctrl and u scroll up and down on the mouse wheel, you’ll see how the website goes out of alignment. this is so frustrating

    Thread Starter sergiust

    (@sergiust)

    this one shows the posts in a gallery view with only the featured thumbnail picture

    ?php
    $et_ptemplate_settings = array();
    $et_ptemplate_settings = maybe_unserialize( get_post_meta($post->ID,'et_ptemplate_settings',true) );
    
    $fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : (bool) $et_ptemplate_settings['et_fullwidthpage'];
    
    $gallery_cats = isset( $et_ptemplate_settings['et_ptemplate_gallerycats'] ) ? $et_ptemplate_settings['et_ptemplate_gallerycats'] : array();
    $et_ptemplate_gallery_perpage = isset( $et_ptemplate_settings['et_ptemplate_gallery_perpage'] ) ? $et_ptemplate_settings['et_ptemplate_gallery_perpage'] : 12;
    ?>
    
    <?php get_header(); ?>
    
            <?php include(TEMPLATEPATH . '/includes/top_info.php'); ?>
    
            <div id="left-area">
                    <?php if (get_option('modest_integration_single_top') <> '' && get_option('modest_integrate_singletop_enable') == 'on') echo(get_option('modest_integration_single_top')); ?>
    
                    <div class="entry clearfix post">
                            <?php
                                    $thumb = '';
                                    $width = 188;
                                    $height = 188;
                                    $classtext = 'post-thumb';
                                    $titletext = get_the_title();
                                    $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
                                    $thumb = $thumbnail["thumb"];
                            ?>
    
                            <?php if($thumb <> '' && get_option('modest_page_thumbnails') == 'on') { ?>
                                    <div class="post-thumbnail">
                                            <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
                                            <span class="post-overlay"></span>
                                    </div>  <!-- end .post-thumbnail -->
                            <?php } ?>
    
                            <?php the_content(); ?>
                            <?php wp_link_pages(array('before' => '<p><strong>'.__('Pages','Modest').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
                            <div id="et_pt_gallery" class="clearfix">
    
                                                            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                                            <?php $width = 207;
                                            $height = 136;
                                            $titletext = get_the_title();
    
                                            $thumbnail = get_thumbnail($width,$height,'portfolio',$titletext,$titletext,true,'Portfolio');
                                            $thumb = $thumbnail["thumb"]; ?>
    
                                            <div class="et_pt_gallery_entry">
                                                    <div class="et_pt_item_image">
                                                            <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, 'portfolio'); ?>
                                                            <span class="overlay"></span>
    
                                                            <a class="zoom-icon" title="<?php the_title(); ?>" rel="prettyPhoto[gallery]" href="<?php echo($thumbnail['fullpath']); ?>"><?php _e('Zoom in','Modest'); ?></a>
                                                            <a class="more-icon" href="<?php the_permalink(); ?>"><?php _e('Read more','Modest'); ?></a>
                                                    </div> <!-- end .et_pt_item_image -->
                                            </div> <!-- end .et_pt_gallery_entry -->
    
                                    <?php endwhile; ?>
                                            <div class="page-nav clearfix">
                                                    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
                                                    else { ?>
                                                             <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
                                                    <?php } ?>
                                            </div> <!-- end .entry -->
                                    <?php else : ?>
                                            <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
                                    <?php endif; wp_reset_query(); ?>
    
                            </div> <!-- end #et_pt_gallery -->
    
                            <?php edit_post_link(__('Edit this page','Modest')); ?>
                    </div> <!-- end .entry -->
    
                    <?php if (get_option('modest_integration_single_bottom') <> '' && get_option('modest_integrate_singlebottom_enable') == 'on') echo(get_option('modest_integration_single_bottom')); ?>
            </div>  <!-- end #left-area -->
            <?php if (!$fullwidth) get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Thread Starter sergiust

    (@sergiust)

    oh nvm .. found it ..

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> will just pull the posts from that particular category ,.:)

    Thread Starter sergiust

    (@sergiust)

    how can i make one category show posts differently?

    Thread Starter sergiust

    (@sergiust)

    but in every cat it’s showing all the posts

    Thread Starter sergiust

    (@sergiust)

    i’m trying to get posts from that particular category .. i.e. http://localhost/hometreasures3/?cat=3 <— only feature posts from this parent cateogry … http://localhost/hometreasures3/?cat=8 <— only feature posts from this child category

Viewing 7 replies - 1 through 7 (of 7 total)