James Adamthwaite
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [WP Knowledge Base] WP Page Navi — BrokenGREAT! THANKS! That’s working for me, too!
I also have this cross-posted at http://podsframework.org/forums/topic/relationships-linking-pages-from-two-pods/
Thanks!
You’re my new best friend. Thank you SOOOO much!
I just needed to add the extra bit at the end so I didn’t break the loop:
<?php if (get_post_meta($post->ID, 'nogallery', true) ) { ?> <?php the_content(); ?> <?php } else { ?> <?php the_content(); ?> <?php echo do_shortcode('[gallery size="large"]'); ?> <?php } ?>🙂
Forum: Fixing WordPress
In reply to: Auto-embeds – Specifically YouTube – CenteringAs you can see – it’s rendering:
<p><iframe width="550" height="413" src="http://www.youtube.com/embed/SsGwIJBNOiI?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe></p> <p>Learn To Do it Yourself: </p> <p><iframe width="550" height="413" src="http://www.youtube.com/embed/q1A_sxzuBDU?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe></p>Forum: Fixing WordPress
In reply to: Auto-embeds – Specifically YouTube – CenteringSorry, but I’m specifically looking for a way for WordPress’ auto embed feature to output this. I’m very familiar with the proper CSS markup and use Firebug.
I just want to paste the URL of the YouTube video and then have AutoEmbed output that centered on the page.
The page: http://gaynerdblog.com/entertainment/how-you-doin/
Here’s the post text:
http://www.youtube.com/watch?v=SsGwIJBNOiI Learn To Do it Yourself: http://www.youtube.com/watch?v=q1A_sxzuBDUForum: Fixing WordPress
In reply to: echo do_shortcode – text to be wrappedok it was the $ that messed me up – I didn’t know why format that had to be.
Just entering in
<?php if ( in_category( 'boys' )) { echo do_shortcode('[button color=black]View More[/button]'); } ?>removing the
'.$ and .'and replacing that with text did the trick.I was thinking i needed to define a variable in a new line and call that variable or something. THANK YOU!
Forum: Fixing WordPress
In reply to: [gallery] image tags have width and size different from size setting^^^^^
Put that in my functions.php file in the theme. This should be a setting! Not code!
Forum: Fixing WordPress
In reply to: [gallery] image tags have width and size different from size setting<?php $content_width = 700 ?>Did the trick.
Forum: Fixing WordPress
In reply to: [gallery] image tags have width and size different from size settingThat made it the raw/full size
<img width="3264" height="2448" src="http://jamesadamthwaite.com/wp-content/uploads/2012/01/IMG_15811.jpg" class="attachment-full" alt="IMG_1581" title="IMG_1581">I’d like for it to be max 700 width and then whatever the height is supposed to be in the correct ratio.
It’s puzzling why it’s lopping 40px off when i have it in “large” mode.