Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Hitokage4

    (@hitokage4)

    I solved this myself: for future people finding this, if you put the emails without any spaces, but with commas between, like the following, it will work:

    email,email,email,email

    Thread Starter Hitokage4

    (@hitokage4)

    Nope, still can’t, but thank you Shannon_G!

    I have to agree with Jamesbailey, Esmi – that a large round of people all having the exact same problem? (getting the connection reset error) all at the same time with different hosts? This is likely the same problem for all.

    We were clean up until this morning – now we can’t log into our back end. So this is affecting a huge range of people.

    Thread Starter Hitokage4

    (@hitokage4)

    I managed to figure it out though possibly not the most elegant solution!

    <?php query_posts("orderby=rand&cat=8&posts_per_page=1"); ?>
                                        <?php while (have_posts()) : the_post(); ?>
                                            <div id="featured_work">
                                            	<?php the_title(); ?>
                                                <?php the_content();?>
                                                <?php $already_displayed = get_the_ID(); ?>
                                            </div>
                                        <?php endwhile;?>
                                    <?php wp_reset_query(); //Reset Query ?>
                                    <?php query_posts("orderby=rand&cat=8"); ?>
                                        <?php while (have_posts()) : the_post(); ?>
                                        	<?php if(get_the_ID() == $already_displayed){ continue; } ?>
                                            <div id="pw_columns">
                                            	<?php the_title(); ?>
                                            	<?php  if ( has_post_thumbnail() ) {  // check if the post has a Post Thumbnail assigned to it. ?>
                                                    <div class="init"><a href="<?php get_permalink();?>"><?php the_post_thumbnail('case-thumb'); ?></a></div>
                                                <?php } ?>
                                            </div>
                                        <?php endwhile;?>
                                    <?php wp_reset_query(); //Reset Query ?>
    Thread Starter Hitokage4

    (@hitokage4)

    Ah! Once I replaced the internal loop with the array from the first loop, it is pulling what is required.

    THANK YOU! You were incredibly helpful and kind. This newbie is in your debt.

    Thread Starter Hitokage4

    (@hitokage4)

    So now I have this:

    <div id="resource">
        	<?php get_posts(array('showposts' => 20, 'post_parent' => 1950, 'post_type' => 'page')); while (have_posts()) { the_post(); ?>
            	<?php
    				$args = array( 'numberposts' => 3 );
    				$lastposts = get_posts( $args );
    				foreach($lastposts as $post) : setup_postdata($post); ?>
    					<div class="video_thumbnail"><a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_post_thumbnail('case-thumb'); ?></a></div>
    					<div class="video_title"><span class="rc-label"><a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php bloginfo('template_url'); ?>/images/blinds-subpage-image.jpg&w=120&h=120&zc=1" alt="<?php the_title(); ?>" /></a></span>
    					<?php the_content();?>
    					<a class="rc-button" target="_blank" href="<?php the_permalink(); ?>">Learn More</a></div><div class="clear"></div>
    				<?php endforeach; ?>
    		<?php } ?>
    	</div>

    Which is… actually pulling posts, not PAGES as I need. (and had working with ‘query_posts’).

    Thread Starter Hitokage4

    (@hitokage4)

    Forgive me, I’m also VERY new to WP coding so please forgive me if I seem a bit dense to something.

    Thread Starter Hitokage4

    (@hitokage4)

    If I change my query_posts to get_posts, and as outlined in the page you sent change the_content to post_content, the_title to post_title, and there isn’t even an open for the thumbnail, it promptly breaks the entire page.

    Thread Starter Hitokage4

    (@hitokage4)

    Thank you for helping me, btw.

    If I use ‘get_posts’, why will it not pull the featured image or content? (title works though, how weird) Or does get_posts use something different?

    (WP_Query breaks everything all together.)

    I need it to pull the featured image, the content, and the title.

    Thread Starter Hitokage4

    (@hitokage4)

    Oh sorry I misunderstood. This:

    <?php
    		/* Run the loop to output the page.
    		 * If you want to overload this in a child theme then include a file
    		 * called loop-page.php and that will be used instead.
    		 */
    		get_template_part( 'loop', 'page' );
    	?>

    is separate above the loop I am using. Otherwise the code I wrote, the get sidebar, and get footer are the only other PHP on the page.

    Thread Starter Hitokage4

    (@hitokage4)

    No, this is our own unique template page.

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