cebradesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Check to see if category has no postsI’ve been looking something like this. Did you find an answer?
Thanks!Forum: Fixing WordPress
In reply to: filtering the_categoryI was looking for some kind of solution like that. Thanks!
Forum: Fixing WordPress
In reply to: Upload file (like pdf) and display as a linkaledan,
thanks for the function! it’s very helpful! ??grarichar,
I’m too looking for something like that.
Haven’t found anything yet ??Forum: Fixing WordPress
In reply to: PDF upload wont creat thumbnail (wp2.5, no flash plugin)rjguyser,
From what I know, the WordPress uploader only creates thumbnails from image formats (jpg, gif, png, etc.) but not from other files types (doc, rtf, pdf, etc.)
In fact, I found your question because I’m trying to find a solution to this. So, if you ever find a answer, please share! ??Forum: Fixing WordPress
In reply to: Screen Options not savingsame problem here. i couldn’t find an answer and it’s only on one blog, can’t understand it. i have wordpress 2.7.1
Forum: Alpha/Beta/RC
In reply to: Dashboard setting wont saveSame problem here.
Forum: Fixing WordPress
In reply to: [Plugin: In-Series] Change series nameThanks!
Forum: Fixing WordPress
In reply to: [gallery] shortcode thumbnails not working after server movesame problem here, I’ve searched and searched but couldn’t find a solution or fix… any news?
Forum: Fixing WordPress
In reply to: hep! – str_replaceI was looking for a solution for for the same problem, and found one that helped me, I hope it can help you.
In this forum, I found this piece of code:
function dostuff($str) { return "<ul>" . preg_replace(array("/^\s+/s", "/(.*?)(\r?\n)+/gs"), array("", "<li>$1</li>"), $str . "\r\n") . "</ul>"; }
I think you could write something like:
add_post_meta($ppost_id, 'externalpost', preg_replace(array("/^\s+/s", "/(.*?)(\r?\n)+/gs"), array("", "<li>$1</li>"), $str . "\r\n"));
I hope this would be useful!
Forum: Fixing WordPress
In reply to: pulling 1 random post from a specific categoryI guess this is it…
<?php global $wpdb; $numposts = 1; $rand_posts = $wpdb->get_results("SELECT * FROM $wpdb->posts,$wpdb->terms,$wpdb->term_relationships WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id and $wpdb->terms.term_id = $wpdb->term_relationships.term_taxonomy_id and $wpdb->posts.post_status = 'publish' and $wpdb->terms.name = 'CATNAME' ORDER BY RAND() LIMIT $numposts"); foreach($rand_posts as $post) : setup_postdata($post); ?>
Hope it helps.