5,349 reputation
1733
bio website markratledge.com
location Missoula, MT
age
visits member for 3 years, 8 months
seen 4 hours ago

Nov
5
comment Add $values to post_class()
Ah, I was using single quotes. The first example works fine. Thanks!
Nov
4
comment Delete post revisions on post publish
Thanks! That doesn't crash now, but it doesn't delete revisions. Is there some sort of query log I can enable to see what its doing/not doing?
Nov
4
comment Build a content and excerpt grid loop with paging and options for # of posts
@kaiser, damn, that was too easy; I should have figured that out. Works great. One last bug: the second page shows the 2 full posts and excerpts rather than all excerpts. That's beyond my feeble thinking.
Nov
4
comment Delete post revisions on post publish
This actually deletes all revisions on any post edit or publish.
Nov
4
comment Delete post revisions on post publish
Looks good and it should work, but I get a parse error on the public function fb_remove_revisions( $post_id = FALSE ) { line.
Nov
2
comment Build a content and excerpt grid loop with paging and options for # of posts
@kaiser, If I knew all the answers, I wouldn't be asking questions. Aside from a few other issues, it mostly works. But the even/odd classes are added to content posts as well as excerpts; they're only needed in excerpts.
Nov
2
comment Delete post revisions on post publish
Thanks! I'm kind of a beginner at php. How would I implement {$new_status}_{$post->post_type}? And that's a good point about all other drafts; I need to just delete the revisions for the one post; so I need to pass the post_iD to the function?
Nov
2
comment Build a content and excerpt grid loop with paging and options for # of posts
No more description given than parse error in the Add Class: "home"... block. Where exactly do I add that global?
Nov
1
comment How do I rewrite this loop as a new WP_Query style-loop?
Chip, Anytime you have time. It's now worth 50 points :)
Nov
1
comment Display trackbacks separately from comments in twentyeleven
@bueltge, thanks! That works. I have a lot to learn about functions.
Nov
1
comment How do I rewrite this loop as a new WP_Query style-loop?
Chip, if you have time, I'm stuck with that new question at the link just above. cheers, Mark
Nov
1
comment Is this robots.txt making Google not to show some of my content?
Dupe: stackoverflow.com/questions/13170436/…
Nov
1
comment WooCommerce with thousands of products - site is very slow - optimize db queries?
Forget trying to cache. If you have root at that VPS, check your my.cnf file and run mysqltuner.pl to tune MySQL.
Nov
1
comment Build a content and excerpt grid loop with paging and options for # of posts
Well, I get a parse error on the line ` $current_in_total = "post-number-" $current_in_total .= get_query_var( 'paged' ) * get_query_var( 'posts_per_page' ) - $wp_query->current_post; $current_in_total .= "-of-total";` And this also adds the odd-even classes to the full posts, which causes them to be displayed in columns instead of full width. And also, where does the paging call <?php twentyeleven_content_nav( 'nav-below' ); ?> ` go?
Oct
29
comment Build a content and excerpt grid loop with paging and options for # of posts
The code snip above that alternates classes is from a different theme, not sure where. I did think of moving my whole theme (which is based on twentyeleven, but is not a parent/child) into Genesis for ease of use and to use that grid loop of billericksons's, but everything else is finished except for this main loop I want.
Oct
29
comment Build a content and excerpt grid loop with paging and options for # of posts
Thanks, let me look at this. You use post classes like this example billerickson.net/a-better-and-easier-grid-loop except you're incorporating excerpts and content to handle text, unlike images as billerickson's example.
Oct
29
comment Build a content and excerpt grid loop with paging and options for # of posts
You're right; last I had heard (not recently) there was a difference in opinion between the thme developer and WP, but I see this: mashable.com/2010/07/22/thesis-relents
Oct
29
comment How do I rewrite this loop as a new WP_Query style-loop?
Chip, Really appreciate the help; I'm over my head with this loop stuff. Here's a new question: wordpress.stackexchange.com/questions/70792/… Thanks
Oct
29
comment How do I rewrite this loop as a new WP_Query style-loop?
Thanks, it looked like it was working, but the lack of the alternating class would be a problem. Actually, I've kind of given up on this, as what I am really working on and need to figure out is a loop like this: a certain number of full posts and then a certain number of excerpts with the odd/even layout for a grid, and which will also support pagination. And the second to ~ pages will be all excerpts in a grid. Just like the Thesis theme does, but I can't figure out how to extract that loop from that theme; and it's proprietary, too.
Oct
28
comment How do I rewrite this loop as a new WP_Query style-loop?
Actually, this doesn't work. ALl the divs have the class .post and don't alternate with the class .uneven. It appears that the loop works from the browser, but the source shows that the classes don't alternate.