Coffee4cr
Forum Replies Created
-
Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1found this, https://pastebin.com/51r7PTwb
and it fixed my problem.Forum: Hacks
In reply to: Help displaying different number of posts_per_page on page 1I have the same “problem” but the other way around.
I have 9 post displaying on the first page, and 8 on the next ones. so on page 2, I see my last post of page 1. but it doesn’t happen on other pages.
Here’s the reason why, but haven’t figured out the way to fix it yet.
What’s happening is when you switch your posts_per_page parameter, WP recalculates its offset from that new parameter.
So let’s say in your case you have 5 on the first page and 6 on subsequent page.
It’s going to show you 1-5 on page 1, but then when you go on page two, and ask for 6 instead, WP will think you had 6 on the first page, hence why you’re getting 7-8-9-10-11-12 on your page 2
Forum: Developing with WordPress
In reply to: wp_publish_post Triggering action 'publish_post'the plugin was fucking things up. well it’s more of the way i’m handling things ??
$yarpp_cache->start_yarpp_time($reference_ID); // get ready for YARPP TIME!
in magic.php
change it to
$yarpp_cache->begin_yarpp_time($reference_ID); // get ready for YARPP TIME!
/* filter for showing a favicon of the user's provider next to their name */ function rpx_get_comment_author_filter($a) { if (strpos($_SERVER['REQUEST_URI'], 'wp-admin')) { return; } global $comment; $identifier = rpx_get_identifier_by_wpuid($comment->user_id); if (!$identifier) { return $a; } $imgdir = get_option('siteurl') . '/wp-content/plugins/rpx/images/'; $img = 'openid.png'; if (strpos($identifier, 'openid.aol.com')) { $img = 'aol.png'; } else if (strpos($identifier, 'google.com')) { $img = 'google.png'; } else if (strpos($identifier, 'yahoo.com')) { $img = 'yahoo.png'; } else if (strpos($identifier, 'facebook.com')) { $img = 'facebook.png'; } else if (strpos($identifier, 'twitter.com')) { $img = 'twitter.png'; } else if (strpos($identifier, 'myspace.com')) { $img = 'myspace.png'; } else if (strpos($identifier, 'live.com')) { $img = 'live.png'; } $img = $imgdir . $img; <strong> return /*"<img src='$img'/> " .*/ $a; </strong> }
fixed it by commenting the return image
Forum: Installing WordPress
In reply to: WordPress 2.9: your attempt to edit this post has failedThanks, updating my php version worked!
Forum: Fixing WordPress
In reply to: Your Attempt to Edit Post “” Has Failed IssuesI just got this problem.
I was running my site on my test server, and we wanted to move it to the production server. Got the same problem as listed above
Forum: Plugins
In reply to: [Plugin: Yet Another Related Posts Plugin] problem with related_posts_exist()I noticed that they weren’t calling the same query.
So I went and changed the call in related_post
to call teh same one as exist()Forum: Requests and Feedback
In reply to: use two wp_pagenavi in one pageHey sfarid,
I’m trying to use your trick, because it’s exactly what i need on my site.
But i’m still unable to use it properly.
I’m using the most recent pagenavi plugin.Forum: Fixing WordPress
In reply to: Navigation problem with different show postany ideas on how I can fix this?
Forum: Fixing WordPress
In reply to: Navigation problem with different show postbump
Forum: Fixing WordPress
In reply to: Custom fields in Press this?same here
Forum: Fixing WordPress
In reply to: 2 loops 2 independant post nav links (is it possible)Is it possible to manage page navigation by hand?
like code your own function to handle it?
Forum: Fixing WordPress
In reply to: 2 loops 2 independant post nav links (is it possible)So there’s no one with an idea on how I could manage this?
Forum: Fixing WordPress
In reply to: 2 loops 2 independant post nav links (is it possible)bump