robertallen
Forum Replies Created
-
In other words, when you go into the Gallery plugin and add an Album/Gallery, the plugin will automatically create folders inside wp-content and upload them there.
You don’t need to create folders in FTP to run the NextGEN Gallery. When you upload images it does it for you.
Is wp-content set to 777 as well?
Forum: Fixing WordPress
In reply to: Trying to display latest postsI even tried
apply_filters(‘the_excerpt’, $recent[‘ID’]->post_content)
but it didn’t work.
Here’s my code so far. Everything works great except the content (which I’ll change to excerpt if I can just get it working)
$args = array( 'numberposts' => '2', 'offset' => 1 ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ) { echo " <li> <div class='featured_image'> <a href='".get_permalink($recent['ID'])."'>".get_the_post_thumbnail( $recent['ID'], 'thumbnail' ). "</a> </div> <div class='post_content'> <h2 class='post_title'><a href='".get_permalink($recent['ID'])."'>".$recent[post_title]."</a></h2> ".apply_filters('the_content', $recent['ID']->post_content) ." </div> </li>" ; }Forum: Fixing WordPress
In reply to: Trying to display latest postsAh ha! Thank you, vjpo. Your question was an answer.
get_the_post_thumbnail( $recent[‘ID’], ‘thumbnail’ )
Now I just need to get get_the_excerpt($recent[‘ID’]) to work.
Any ideas? Thank you guys so much for your help so far.
Forum: Fixing WordPress
In reply to: Trying to display latest postsNot even
the_content($recent[‘ID’]) or get_the_content($recent[‘ID’)
shows up.
I’m so frustrated.
Forum: Fixing WordPress
In reply to: Trying to display latest postsI’m using the default ‘thumbnail’ as my thumbnail size.
Forum: Fixing WordPress
In reply to: Trying to display latest postsYep, to save time I set them at 250×250…which work on the blog index page…but I was researching that link you sent me and I couldn’t figure out how to get it inside the foreach loop. It kept displaying the larger version of the image, not the actual resized/cropped thumbnail.
Also I just realized I was putting it in the wrong area…oops!
<a href='".get_permalink($recent['ID'])."'>".get_the_post_thumbnail($recent -> ID[thumbnail]). "</a>Now it doesn’t even display.
I even tried ($recent[‘ID’][‘thumbnail’]) and nothing.
Forum: Fixing WordPress
In reply to: Trying to display latest postsThank you so much, I believe with that foreach loop I’m on the right track. All I have left to do is make the featured image thumbnail and the excerpt…but I’m stuck as to why it won’t resize.
My goal is to use the ‘thumbmnail’ default of WordPress…
This is what I have…
<a href='".get_permalink($recent->ID[thumbnail])."'>".$recent[post_title]."</a>but it still shows up with the non-thumbnail image.
Here’s my complete new code…
<ul> <?php $args = array( 'numberposts' => '2', 'offset' => 1 ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ) { echo " <li> <div class='featured_image'> <a href='".get_permalink($recent['ID'])."'>".get_the_post_thumbnail($recent['ID']). "</a> </div> <div class='post_content'> <a href='".get_permalink($recent->ID[thumbnail])."'>".$recent[post_title]."</a> </div> </li>" ; } ?> </ul>Forum: Fixing WordPress
In reply to: Trying to display latest postsThank you much, but that’s what I’m basing my code on…just having issues altering it a bit.
Forum: Plugins
In reply to: [Custom Permalinks] 404 ErrorResolved: Was a wierd bug that went away.
Forum: Fixing WordPress
In reply to: Trying to display latest postsI get this syntax error.
Fatal error: Call to a member function have_posts() on a non-object in /home/user/public_html/dzindna/wp-content/themes/dzindna/page.php on line 36
Strange. It worked for me. Thank you THWIT for all your help.
Now it’ll take some time for Google to parse the changes, so crossing fingers that it works great.
Hope you didn’t mind me jumping into the conversation, Niels, as I, too had the same issue.
Will removing the Yoast plugin and installing the old plugin delete all my settings? I’d have to go in and re-type all the Meta Description/Keywords for every page?
Forum: Fixing WordPress
In reply to: Using custom permalinks makes previous page go to 404I did that to my .htaccess and I’m still getting 404. Anyone have any ideas on how to fix this? Something wrong with the plugin now?