Kailey (trepmal)
Forum Replies Created
-
Forum: Plugins
In reply to: Advanced Most Recent Poststhe
yg_recentposts()function already echos the output, so it’s not necessary to re-echo it.For styling, you can play with the CSS. Something like this should add a box around each item
ul.advanced-recent-posts li { border: 1px solid #444; }Forum: Plugins
In reply to: Advanced Most Recent Postsare you echoing the template tag?
<?php echo yg_recentposts(); ?>
doing so could cause some unexpected issuesas far as the error, do you still have the original plugin activated? The mod cannot be activated if the original is also activated
Forum: Plugins
In reply to: Advanced Most Recent PostsIf your theme doesn’t have alternate sidebars, you might have to use the template tag:
<?php yg_recentposts($args); ?>I also have a variation of this plugin that allows for shortcodes that can be added directly to your posts like
[amrp]
[amrp limit=3 excerpt=150]Forum: Plugins
In reply to: Advanced Most Recent PostsThis plugin doesn’t support random posts.
If your theme is widgetized, you can move the widget to an area other than your sidebar.
Forum: Fixing WordPress
In reply to: thumbnails won't showSorry about the delay in responding – about half way through this note I lost my internet connection… Long story short, I’m working from my phone…
****
In my functions.phpadd_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 150 ); add_image_size( '300-square', 300, 300, true );in index.php, outside of the loop:
<?php if (has_post_thumbnail( $post->ID )) { echo '<div style="text-align:center;padding:20px; background:#bbb;">'; echo get_the_post_thumbnail( $post->ID , '300-square'); echo '</div>'; } ?>in index.php, inside the loop:
<?php if (has_post_thumbnail()) { echo '<div style="text-align:center;padding:20px; background:#bbb;">'; the_post_thumbnail('300-square'); echo '</div>'; } ?>Forum: Fixing WordPress
In reply to: thumbnails won't showI think you’d use
helio_slider– whatever the name is you assigned it in the functions.php file.I’m kind of intrigued by the original issue though – would it be possible post the problem code in context (perhaps via http://pastebin.com/ or http://codepad.org/)? I’d toss it up on my test site to see if there’s anything funky going on…
Forum: Fixing WordPress
In reply to: thumbnails won't showAs a core function,
has_post_thumbnail()should find your uploads directory just fine.Are you able to turn debug on? Maybe there’s some strange disconnect happening… http://codex.wordpress.org/Editing_wp-config.php#Debug
Alternatively, what if you replace
$post->IDwith an known ID, and add an else statement?$id = 'known-id'; if ( has_post_thumbnail( $id ) ) { echo get_the_post_thumbnail( $id, 'helio_slider', array('class' => 'slidimg') ); } else { echo 'did not pass the has_post_thumbnail() check'; }Forum: Fixing WordPress
In reply to: Issue importing images in xml fileI’m not sure if this is intended behavior or not… I usually have to edit a bunch of links after import anyway, changing the image sources isn’t a big deal…
Forum: Fixing WordPress
In reply to: Stupid Newbie questionthe “Edit this Page” will link will only appear when you’re logged. it’s simply a convenience for you if you’re browser your own site and see the need to edit a page/post.
if you really want to remove it, you’ll need to open up your theme to edit, find the references to
edit_post_link()and remove them.Forum: Fixing WordPress
In reply to: Issue importing images in xml fileAre the images imported to the media library? If so, you can then use the Search and Replace plugin to fix the image sources.
Forum: Fixing WordPress
In reply to: Next Page Previous Page helpawesome!
Forum: Fixing WordPress
In reply to: Display metadata of media in a postI think if you want to grab a comment, you’ll actually need a different function,
get_comments()(http://codex.wordpress.org/Function_Reference/get_comments)Unfortunately, I can’t expand on this right now, but I’ll try to come back to this later today.
Forum: Fixing WordPress
In reply to: Display metadata of media in a postHave you checked out the
get_metadata()function yet?Forum: Fixing WordPress
In reply to: Contact Form Input Fields Overlapping MenuIf I add the
position:relative;andz-index:30;to the#page-wrapdeclaration, the problem is fixed – may have to tweak it according to your needs.Forum: Fixing WordPress
In reply to: Getting post thumbnail URLglad you got things working out