Recent Topics

1 Dec 16, 2012 10:26    

Basically i want a custom.posts.main.php to make some modifications here and there.
It's easy to make a static custom.disp, but it seems it's rather tricky to make one with post loop.Any advices on how to do this ?

2 Dec 16, 2012 19:24

Use plugin hooks

/**
 * Return list of custom disp types handled by this plugin
 *
 * @return array list of disp modes handled by this plugin
 */
function GetHandledDispModes()
{
	return array(
			'disp_test', // display our test disp
		);
}


/**
 * Display our custom disp mode(s)
 *
 * @param mixed array $params
 * 		disp > display mode requested
 *
 * @return did we display?
 */
function HandleDispMode( $params )
{
	echo '<p>This is the test plugin handling the ['.$params['disp'].'] disp mode.</p>';
}


Form is loading...