bcbirk100
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Embedding Flash Object via ‘Write Page’ – WP 2.0.5whenever i do th is, wordpress puts the object tags together and removes anything i have in the object tag.’
this is the code i put into my post
<object type=”application/x-shockwave-flash” data=”https://devel.videofly.com/videoplayer.swf?Playlist=https://devel.videofly.com/flvideo/103.flv&viewkey=final_fantasy__opening_-_video_-_2007-06-01-18-13-33″ class=”movie” width=”425″ height=”350″>
<param name=”movie” value=”https://devel.videofly.com/videoplayer.swf?Playlist=https://devel.videofly.com/flvideo/103.flv&viewkey=final_fantasy__opening_-_video_-_2007-06-01-18-13-33″ />
<param name=”bgcolor” value=”ffffff” />
<img src=”https://path-to/noflash.gif” width=”425″ height=”350″ alt=”No flash installed” title=”No flash installed” class=”image” />
</object>and after i hit save, and look at it again this is the code that shows up
<object height=”350″ width=”425″></object>
<param name=”movie” value=”https://devel.videofly.com/videoplayer.swf?Playlist=https://devel.videofly.com/flvideo/103.flv&viewkey=final_fantasy__opening_-_video_-_2007-06-01-18-13-33″></param>
<param name=”bgcolor” value=”ffffff”></param> <img src=”https://path-to/noflash.gif” alt=”No flash installed” class=”image” height=”350″ width=”425″ />what’s the deal?
Forum: Plugins
In reply to: display random posts on index pageuse this loop to select a random post from a specific category.. remember to change the number of posts you want an dhte category name.
<?php
global $wpdb;
$numposts = 1;
$rand_posts = $wpdb->get_results(“SELECT * FROM $wpdb->post2cat,$wpdb->posts,$wpdb->categories WHERE
$wpdb->post2cat.post_id = $wpdb->posts.ID and $wpdb->post2cat.category_id = $wpdb->categories.cat_ID and $wpdb->posts.post_status = ‘publish’ and $wpdb->categories.cat_name = ‘featured’ ORDER BY RAND() LIMIT $numposts”);
foreach($rand_posts as $post) :
setup_postdata($post);
?>