Problem with ajax plugin for refreshing posts

I think what’s happening is that the jQuery is not able to destroy the element because it is not wrapped in the .random-post li. Try adding that back in and see if it fixes your code. Also, just a note, you added a space in random-post-excerpt that was not there in the original.

How to display Post title By ID and its Thumb Contents

For Display post title inside the loop you can use following For Post title <?php the_title(); ?> For Post Short Content <?php the_excerpt(); ?> For Post Category <?php twentyten_posted_in(); ?> Or Display post title out side the loop use global variable $post <?php global $post; ?> For Post title <?php $post->post_title; ?> For Post Short … Read more

WordPress wp_editor to post and edit

I’m assuming you would have an Edit page and an Add New page, so why not just switch out the wp_insert_post function from the Add New page to wp_update_post? The first argument for wp_editor is the content you want to appear, so just use the current post that’s being edited’s content.

Trim posts from WP-Query?

I think it would be better to just do a second query if you don’t have 8 posts for that month, for example: //get current date $date = getdate(); //setup args $args = array( //basic stuff ‘posts_per_page’ => -1, ‘post_stutus’ => ‘publish’, //time parameters ‘year’ => $date[‘year’], ‘month_num’ => $date[‘mon’] ); //create WP_Query $my_query = … Read more

Custom post type slideshow background images to insert in a plugin

Try moving your foreach into the script tag, as such : In the images parameter of your javascript : //[…] images:[ <?php foreach( $slider_posts as $post ) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), ‘home-slide’); echo ‘”‘ . $thumb[0] . ‘”,’; //Assuming images are separated by a comma } ?> ] You may need to alter the example … Read more