yongfook
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Entry Saving Loads IndefinitelyI want to preview what it will REALLY look like, but this feature doesn’t do that.
Yes it does…doesn’t it? In the preview pane at the bottom, just click the title of your entry – you’ll be whisked off to your website where you can see the page looking as it does in your design.
And as far as I know, the page it shows is only viewable if you are the admin.
Forum: Fixing WordPress
In reply to: pages on pages (!) not working…?oh and if there is an easier way to make a big archive of everything without making a page template like I did, I’m all ears!
Forum: Plugins
In reply to: need most commented, but with c2c_get_customok I thought this would DEFINITELY work, but it doesn’t 🙁
I basically put a mini loop inside the most-commented script, so I could use the c2c_get_custom function. It doesn’t do anything though…can anyone tell me why?
if ($posts) {
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$comment_count = $post->comment_count;
//
//
//new stuff here
//
//
$id = $post->ID;
query_posts('p=$id');
while (have_posts()) : the_post();
$thumb = c2c_get_custom('thumb');
endwhile;
//
//
//end of new stuff
//
//
$permalink = get_permalink($post->ID);
$output .= $before.$id.$thumb . '<a href="' . $permalink . '" title="' . $post_title.'">' . $post_title . '</a>'.$thumb.' (' . $comment_count.')' . $after;
}Forum: Plugins
In reply to: need most commented, but with c2c_get_customanyone?
anyone??
I tried this:
if ($posts) {
foreach ($posts as $post) {
$post_title = stripslashes($post->post_title);
$comment_count = $post->comment_count;
//new line here!!!111
$thumb = c2c_get_recent_custom("thumb");$permalink = get_permalink($post->ID);
$output .= $before . '<a href="' . $permalink . '" title="' . $post_title.'">' . $post_title . '</a>'.$thumb.' (' . $comment_count.')' . $after;
}And it works fine – BUT, that just gets the most recent custom field regardless of post. I really need to use c2c_get_custom() but I get an error – I think it’s because the above isn’t strictly a wordpress loop. Also tried $post->c2c_get_custom() and that won’t work either.
Any ideas?? Very close now, I think!
Forum: Fixing WordPress
In reply to: how to mod rewrite this /index.php/feed –> /feed ???Brilliant. Macmanx, you are a god amongst men. I tried the second one and it works wonders – and now all my old links in google work too. Cheers!