Category Archives: Wordpress Themes

Limit the number of sticky posts appearing on site

Code to limit the number of sticky posts shown in a page

/* Get all sticky posts */
$sticky = get_option( ‘sticky_posts’ );

/* Sort the stickies with the newest ones at the top */
rsort( $sticky );

/* Get the 2 newest stickies (change 5 for a different number) */
$sticky = array_slice( $sticky, 0, 5 );

/* Query sticky posts */
query_posts( array( ‘post__in’ => $sticky, ‘caller_get_posts’ => 1 ) );
?>

dsIDXpress not functioning properly in Thesis 2

dsIDXpress is a plugin for wordpress that gives IDX functionality to wordpress based site.

It allows visitors to search and browse available properties in your MLS.

Search engine will index properties from MLS on the website.

dsIDXpress works with Thesis 1.x series, but recently did a site on Thesis 2. Widgets, shortcodes etc will work without any issues.

But the page that displays the details of single property is not working. It just shows the contents of home page.

dsIDXpress is not recognizing any templates in Thesis 2.

Hope the plugin developer and thesis theme developer share their knowledge and figure out a fix / solution.