bhunt504
Forum Replies Created
-
Oh man, I think it was the permalinks. I re-saved those and problems was gone. Totally forgot to do that. Thanks for your help and thanks even more for a great plugin!
That’s exactly what it was. I was trying to embed a Contact Form 7 form into one of the pop ups and when I turn that one off, the admin bar comes back. Look like it’s a problem with that plugin. Thanks for your help – great plugin!!
Gotcha. I’ll give it a try. Thanks!
Forum: Hacks
In reply to: Display only the most recent "sticky" post on a template pageActually, I figured it out. Was way more simple than I was thinking and this is what I ended up using. Thank you for your time and assistance!
<?php $args = array( 'category_name' => 'healthcare', 'post__in' => get_option( 'sticky_posts' ), 'showposts' => '1' ); $my_query = new WP_Query( $args ); while ( $my_query->have_posts() ) : $my_query->the_post(); $do_not_duplicate = $post->ID; $thumb_id = get_post_thumbnail_id(); $thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true); $thumb_url = $thumb_url_array[0]; ?>Forum: Hacks
In reply to: Display only the most recent "sticky" post on a template pageYou’re close, but actually we’re only displaying one post for the “healthcare” category. There are no other posts to be displayed – however we don’t want it to always be the post recent post and instead be one that we designate as being the one to be promoted. My idea was that using the “sticky” feature could be a good solution – it might not be! But as you can see on the page, we’ve basically got three categories and are want to display one post for each category but not necessarily the most recent, rather the post that is set to be “sticky.” Does that make sense? And thank you so much for you help!!
Forum: Hacks
In reply to: Display only the most recent "sticky" post on a template pageThank you! I might be in over my head here, sorry! I do realize that this is not a complete loop, just my initial PHP code to open the loop and was assuming the code to pull just the sticky post would go in there. But are you saying it can be a separate line of php code before the HTML of the loop to display the post?
Thank you so much for your help!
Forum: Fixing WordPress
In reply to: Date Modified displayed on PagesNevermind, that does work on pages as well.
Forum: Fixing WordPress
In reply to: Omit a Category from the loopAhhhhh, perfect! Thank you so much for your help! Just what I needed.
Forum: Fixing WordPress
In reply to: Omit a Category from the loopOk, that makes sense, thanks for sharing it. I think I’m getting hung up on exactly where that need to go. I’ve tried putting it right before the loop starts as suggested in the third link you provided. Do you have any suggestion where it needs to go? Thanks in advance!