jsoningram
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination works on Mac, not on WindowsI fixed this by using the standard loop and not a page template and then setting my front page to static. Still curious as to why this wouldn’t work only in Windows.
Forum: Plugins
In reply to: [Smooth Slider] [Plugin: Smooth Slider] Media Library Slides not ShowingI’m using Apache, no luck for me yet
Forum: Plugins
In reply to: [Smooth Slider] [Plugin: Smooth Slider] Media Library Slides not ShowingAny luck with this Melanie? I sent the dev an e-mail as well but haven’t heard back. I see there are responses to other issues after this one.
Forum: Plugins
In reply to: [Smooth Slider] [Plugin: Smooth Slider] Have 6 slides, but only 5 displayHa! I feel slightly stupid.
Smooth Slider Settings => Basic Settings tab => Number of Posts in the Slideshow
All fixed
Forum: Fixing WordPress
In reply to: Random display of post meta based on custom fields?I figured it out so I thought I’d post back here. I’m sure there’s a better way but here goes:
<?php $current_parent = $post->ancestors; // Get parent's ID $current_page = $post->ID; // Get current page's ID shuffle(query_posts(array('post__not_in'=>array($current_page), 'post_parent'=>$current_parent[0], 'post_type'=>page, 'posts_per_page'=>-1))); while (have_posts()) : the_post(); ?> <a href='<?php the_permalink(); ?>'> <?php echo "<div class='suggestions'>"; echo "<img src='" . get_post_meta($post->ID, 'product_image_lg', true) . "' />"; echo "<p class='popcorn_id'>"; echo "<span>#"; echo get_post_meta($post->ID, 'product_id', true); echo "</span> - "; echo the_title(); echo "</p>"; echo "</div>"; ?> </a> <!-- end suggestions --> <?php endwhile; wp_reset_query(); ?>
First I get the IDs of the current page and it’s parent page. Then use query_posts() based on those two findings, shuffle the results and display.
Forum: Fixing WordPress
In reply to: Random display of post meta based on custom fields?Thanks ColorVilla. Unfortunately I’m so new I don’t know how to implement that. I’m looking for either the code or a really good tutorial.