Full Width Main Post

It’s certainly possible, and is a common thing to do with WordPress: <?php $q = new WP_Query(‘category_name=category_breaking’); // query that gets all posts in category “category_breaking” if( $q->have_posts() ) : // if there are posts returned by query… echo “<div id=’breaking_news’>”; // start the breaking news section while( $q->have_posts() ) : $q->the_post(); // start looping … Read more

Show featured image next to post-teasers in Genesis Framework?

(Cut/pasted from the OP.) SOLUTION: As it turns out, this is very simple. Go to your Dashboard –> Genesis –> Theme Settings Now in the box labelled “Content Archives” select “Display Post Excerpts” from the drop down menu. Now make sure the “Include the Featured Image” box is checked and select your image size. Save … Read more

Most recent post from another database

The WordPress wpdb class is a little different than the normal way of querying in that you run “vanilla” database queries. You can see documentation on the wpdb class on the WordPress docs: http://codex.wordpress.org/Class_Reference/wpdb#Run_Any_Query_on_the_Database Also, in regard to your code, you should be able to change the line here: $originaldb->query_posts( ‘posts_per_page=1’ ); To something like … Read more

Create dropdown list post

Hey @Ruriko … its a 3 step action. get the current category ID get the posts for this specific category get the posts into a select menu Please note that this code would use the first category id altough you might assign several categories to the same post. . <?php // FIRST CATEGORY NAME $category … Read more

XML-RPC and post_date

There are a couple of issues here. First of all, wp.editPost takes a fourth parameter before the content struct -> the ID of the post you’re trying to edit (should be an integer). Second, you’re passing a string for the post_date, so the client automatically converts this to a <string> tag before sending it to … Read more

slideshow is not showing in a post call with ajax

When you load a page that contains a normal static post, there is some JavaScript that is called on page load to instantiate your slider. Something like: jQuery(document).ready(function($){ $(‘.sliders’).someSliderScript(); }); This finds all of the elements that should have a slider applied and runs all the necessary code to set it up and make it … Read more