Hitokage4
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form Manager] Send admin email to more than one emailI 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
Forum: Fixing WordPress
In reply to: Unable to Login to WordrpressNope, still can’t, but thank you Shannon_G!
Forum: Fixing WordPress
In reply to: Cant log onto admin area on two of my websitesI 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.
Forum: Fixing WordPress
In reply to: Cant log onto admin area on two of my websitesWe were clean up until this morning – now we can’t log into our back end. So this is affecting a huge range of people.
Forum: Fixing WordPress
In reply to: Random Posts – Not having luckI 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 ?>Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopAh! 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.
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopSo 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’).
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopForgive me, I’m also VERY new to WP coding so please forgive me if I seem a bit dense to something.
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopIf 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.
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopThank 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.
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopOh 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.
Forum: Fixing WordPress
In reply to: Sidebar Not Showing Due to PHP LoopNo, this is our own unique template page.