philpeter
Forum Replies Created
-
Forum: Plugins
In reply to: autoblog – only pulling in first few linesHiya!
Can you post a link to the feed? My first thought is that the feed itself doesn’t include the full content. Have you checked that?
Cheers,
PhilForum: Fixing WordPress
In reply to: Pagination in Posts Edit Admin Screen MissingI’ve been investigating… here’s what I’ve found:
The div.tablenav_pages is written out on lines 388-400 of /wp-admin/edit.php:
<?php if ( $page_links ) { ?> <div class="tablenav-pages"><?php $count_posts = $post_type_object->hierarchical ? $wp_query->post_count : $wp_query->found_posts; $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), number_format_i18n( $count_posts ), $page_links ); echo $page_links_text; ?></div> <?php }$page_links is defined in lines 311-318:
$page_links = paginate_links( array( 'base' => add_query_arg( 'paged', '%#%' ), 'format' => '', 'prev_text' => __('«'), 'next_text' => __('»'), 'total' => $num_pages, 'current' => $pagenum ));I added the following after 318 to see what was in $page_links:
echo "<!-- "; print_r($page_links); echo " -->";The output, as expected, was a blank array.
I changed $page_links to:
$page_links = paginate_links();to see if the default values for paginate_links (line 1943 of /wp-includes/general-template.php) worked.
Again, a blank array.
So paginate_links is returning a blank array – but I can’t figure out why that would be.
Anyone?
Forum: Fixing WordPress
In reply to: Admin Pages pagination broken – going to postsI have the same issue and I’m on a VPS, not Fasthosts.
There is another thread with the same issue, still not solved.
Forum: Fixing WordPress
In reply to: Pagination in Posts Edit Admin Screen MissingI’ve just discovered the same issue with pagination.
The div.tablenav-pages is missing from the HTML completely so it’s not a CSS issue – something has removed the entire DIV.
Yep that was my guess. I’d suggest that that’s bad practice for any plugin as you never know how many posts a blog will have and what damage it might cause.
When I hit that button I said to myself, “surely they’ve not built it to loop through every single post?!”
Alas, that was the case and even posts from over two years ago were hit which makes little sense.
As the post says, WP v3.04.
The Get Shortlink button is available when the plugin is de-activated.
I have cURL enabled.
I haven’t looked at my error logs.
Forum: Fixing WordPress
In reply to: Comments missing from WordPress exportHaving done another export a few days, and posts and comments, later it seems that WordPress isn’t actually building the XML properly.
It’s cutting out half-way through posts and not finishing, resulting in an incomplete, badly formed XML file.
Anybody else seen this, especially in trac? Seems like it might be a bug…
Forum: Fixing WordPress
In reply to: Comments missing from WordPress exportHas no-one had this issue, or see how it might occur? I thought maybe WP does some caching and that’s where the new comments are going…?
Forum: Fixing WordPress
In reply to: Excluding sticky posts using query_posts()According to @wefixwp, the WP documentation on this is wrong.
To get around it, I’ve produced a normal, all-inclusive loop and wrapped all the HTML code within it this IF statement:
if (!is_sticky())This stops the loop actually writing out the post if it is a sticky post. I guess it works but that documentation needs cleaning up.
Phil
Forum: Fixing WordPress
In reply to: Excluding sticky posts using query_posts()Yep, but caller_get_posts only returns sticky posts to the normal chronological order. I want all sticky posts to be excluded from the loop, which the query_posts() article says is possible by using
query_posts(array( "post__not_in" => get_option("sticky_posts") ));Problem is, that isn’t working!
Forum: Alpha/Beta/RC
In reply to: “Sticky” Qualifier for query_posts`query_posts(array(
“post__not_in” => get_option(“sticky_posts”)
));`I’ve used this solution but it’s not working for me. I’m using it in the second loop in my home.php file, which is preceded by wp_reset_query().
The first loop uses this wp_query:
query_posts(array('post__in'=>get_option('sticky_posts')));The second uses:
query_posts(array("post__not_in"=>get_option("sticky_posts")));But I see the same (sticky) post as the first post produced by both loops. In date order it would be the third post.
Any idea why this wouldn’t work?
Forum: Fixing WordPress
In reply to: WP adding code to the end of url links breaking themI just had this problem.
The string was added to the end of the Permalink in Settings > Permalinks. Simply removing it and saving fixed it.
It does beg the question though, why this happened and how? Is it a hack?
Phil
Forum: Fixing WordPress
In reply to: Custom page template is selected but the page uses the defaultSorry, it’s me being a muppet. It was working! Thanks for you help.
Forum: Fixing WordPress
In reply to: Sharing users between 2 blogsHas anybody else tried this yet? All the intructions seem easy enough, maybe too easy… has something been missed do you think?
Forum: Everything else WordPress
In reply to: How do I create an ARCHIVE INDEX?I have this same problem. There is no Page Template dropdown under the Attributes tab, either.
I have the template file I want to use within my theme…