casanovaruffin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display another website’s RSS feedThanks man, I tried feedwordpress but it was way too confusing. I ended up just using wp_widget_rss_output function. It did what I needed it to do.
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyA full post for 1-5, title only 6-9, then a full post for 10.
And I suppose we just want the day to go back to yesterday. If there’s no posts for yesterday, then how about the day before? Or we could just do nothing, no change?
And if there are less than 5 posts for a given day, then maybe no change? Or just change it to title only anyway?
When you put it that way, this does sound very messy! I hope this isn’t too much trouble.
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyI think this “calls” the posts from the most recent 4 posts from the previous day, but I’m not sure if that’s what I was looking for.
I might have been unclear. But here’s what I’m looking for.
May 25 (Current Day)
Post 1
Post 2
Post 3
Post 4
Post 5
May 24 (Previous Day)
Post 6
Post 7
Post 8
Post 9
Post 10
How do I make it so that Post 6-9 shows their title only, and Post 10 shows up regularly?
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyOk I got it.
I have 20 posts within the first page.
This is how I wrote it for my theme:
<?php if (have_posts()) :
$count = 1;
while (have_posts()) : the_post(); ?><?php
if (($count < 16) && (is_home() || is_front_page())) { ?>// I wrote less than 16 so it would only do the last 5 posts of the page.
// Code for the full post
<?php } else { ?>
” rel=”bookmark”><?php the_title(); ?>
<?php } ?>
<?php $count++; endwhile; ?>
Then I had to add this counter to create the increment from the original counter.
<?php endif; ?>Thanks for all the help, vtxyzzy.
Would you or anyone know how to show only the headline for 4 the most recent posts of the previous day?
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyOk this works! Thanks so much! But it only shows the 1st post as a full post. The rest are titles.
How do I write it so that it’s the last 5 posts of the front page?
OR how would I write it I wanted it to be posts 5th-10th on the front page?
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyWhat exactly does $count = 1 mean? Does that mean the last post or the first post?
Is this what it means: if it’s the 1st post, show full post. If it’s not the 1st post, show title only?
Forum: Fixing WordPress
In reply to: Have lasts posts in index show title onlyThanks so much, I’ll try this and see how it goes.
I’d like to know how to do this. Is there any way to do this using custom fields?
Forum: Fixing WordPress
In reply to: Different Post Types with Custom FieldsHere’s what I got so far…
I typed this in the index:
<?php
$key = ‘full’;
$full = get_post_meta($post->ID, $key, TRUE);
if($full != ”) {
echo
the_content();
}
else
{
the_excerpt();
}
?>When I type something in the “full” custom field, it switches to php the_content. When I don’t use the “full” custom field, it goes to php_the excerpt as a default.
This is all good and well, but I can’t get the post thumbnail to show up for the excerpt.
This is how it looks normally for php the_excerpt with a working thumbnail:
<?php $values = get_post_custom_values(“Image”);
if (isset($values[0])) { ?>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<img src=”<?php echo bloginfo(‘template_url’); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values(“Image”); echo $values[0]; ?>&w=200&h=200&zc=1&q=100″
alt=”<?php the_title(); ?>” class=”left” width=”200px” height=”200px” />
<?php } ?><?php the_excerpt(); ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Read the full story »
When I try to put this in the if else statement, it doesn’t work.
Any ideas?
Forum: Plugins
In reply to: [Plugin: Featured Content Gallery] Plugin is changing the date of my postsBump
Forum: Fixing WordPress
In reply to: Website Domain and WordPress Blog Not In SyncThat was it! It worked! You fixed it!
Thank you samboll! You saved my site.