SueForPeace
Forum Replies Created
-
Forum: Plugins
In reply to: [Mini twitter feed] [Plugin: Mini twitter feed] Not working anymoreIncase you were wondering, that’s roughly 14 per day. Don’t get mad at the guy who made the plugin, Twitter limits this on the API so you don’t use up all their (twitter) bandwidth requesting tweets all day while you hit refresh.
Forum: Plugins
In reply to: [Mini twitter feed] [Plugin: Mini twitter feed] Not working anymoreMaybe this will help some of you people just refreshing all day to see if it’s working.
You can display up to 100 tweets within 7 days (limit set by Twitter’s Search API).
Forum: Fixing WordPress
In reply to: If File Exists Post Image, if Not, post title.Thanks!
Forum: Fixing WordPress
In reply to: If File Exists Post Image, if Not, post title.Thanks for the help, I’ve sorted all out with your direction, the perfect set up for me was
<?php if (has_post_thumbnail()) { the_post_thumbnail('full'); } else { echo the_title("<h1 class='title'>","</h1>"); } ?>
Forum: Fixing WordPress
In reply to: If File Exists Post Image, if Not, post title.better yet, like you stated, on pages, is there a if(featured_image!=null) { echo “<img>”;
} else {
echo the_title();?
}Forum: Fixing WordPress
In reply to: If File Exists Post Image, if Not, post title.Genius, thanks man, with your direction I came up with this:
<?php $image = get_template_directory() . "/images/" . get_the_title() . ".png"; $image2 = get_template_directory_uri() . "/images/" . get_the_title() . ".png"; if (file_exists($image)) { echo "<img src=" . $image2 . ">"; } else { echo the_title("<h1 class='title'>","</h1>"); } ?>
Works just fine, is there anything you see that can be condensed?
[Code moderated]
maybe even just a <span> and </span>
Forum: Fixing WordPress
In reply to: Blogs won't display on main page<div class=”entry-content”>
<?php if ( post_password_required() ) : ?>
<?php the_content(); ?>
<?php else : ?>it’s in there.