ckruse
Forum Replies Created
-
Forum: Plugins
In reply to: [Twitter for Wordpress] Twitter for WordPress broken on upgrade to 3.1I am using the plugin on the latest WP install (3.1.1) The plugin is working fine for me, minus the timestamp. I was able to get the timestamp working by doing the following.
on line 91/92:
$time = strtotime($message['pubdate']); //this code still works
The code following that line is what is not working. I commented everything else out within the if statement
if($updated) { $time = strtotime($message['pubdate']); /* forget the rest */ }
I then added my own echo statement.
if($updated) { $time = strtotime($message['pubdate']); echo '<span class="timestamp">' . date('m/d/Y H:ia', $time) . '</span>'; /* forget the rest */ }
It is a hack, but it works until the plugin is updated. Hope this helps someone.
Forum: Plugins
In reply to: WordPress EcommerceIt is possible they have a custom ecommerce software developed for that site. The Shopp plugin for wordpress wraps the entire store in <div id=”shopp”></div>, which I do not see in there source, so I am going to say that it is not Shopp.
Forum: Themes and Templates
In reply to: WP bugFigured it out. You have to actually put the bloginfo(‘template_directory’) call for each image. If not, wordpress seems to try to find them for you.
Forum: Themes and Templates
In reply to: WP bugOk I finally got around to adding the code. I pasted it in the pastebin as suggested. I included the most basic theme set up which is causing the error. style.php, header.php, index.php, footer.php
Any help would be greatly appreciated.
Forum: Themes and Templates
In reply to: WP loading Theme several timesOk to add to it. I ran some more test, and it is not loading index.php several times. But a get_header() call within the index.php call does run mulitple times, as well as get_footer() and get_sidebar().
Forum: Plugins
In reply to: Form SubmitionYea Read that doesn’t tell me how to handle form submission
Forum: Themes and Templates
In reply to: Template DirectoryThanks a lot!
Forum: Themes and Templates
In reply to: found_postsMostly just curious. I recently wrote my own pagination script which was obviously more then it needed to be. I found this property and it solved all my problems. On my index page I was limiting the number of posts shown to 5 (showposts=5), but I wanted, at the bottom with the pagination to display the total number of pages, like PAGE 1 OF 10. So I stored the query request
$theQuery = $wp_query->request;
Then I stripped the LIMIT from that request, as it was limiting to 5. Then re-ran the query without the limit for the sole purpose of getting the total number of posts based on my query. A lot of work and database stuff for nothing.
I did not realize the wp_query object had that property stored.
Forum: Themes and Templates
In reply to: Archive Pagination with Total PagesI figured it out. I must be getting smarter. In case anyone else needs this. It actually works great for all pages
<?php
//set up for paging
if($paged == 0 || $paged == “”) { $paged = 1; }//get the SQL statement which was run.
$theQuery = $wp_query->request;
//need to remove the limit
$theQuery = substr_replace($theQuery, “”, strpos($theQuery, “LIMIT”), strlen($theQuery));
//now run the query again
$get_max_pages = $wpdb->query($theQuery);
$max_pages = ceil(($get_max_pages)/(get_option(‘posts_per_page’)));
?>Forum: Themes and Templates
In reply to: PaginationOk, well how do you use that with a custom query. On my home page I have the custom query which does not show “Uncategorized” posts and limit to 3 posts.
I wrote a custom query to get all posts. But how could I use this. For example, on an archive page.
Forum: Themes and Templates
In reply to: wp_list_commentsThanks. I just ended up writing my own function to query the comments table and display them formatted just as I like them. Works great!