Add custom orderby for Content Block

Posted in: Newspaper
Post count: 1

Hi there!
Thanks for amazing theme. I really love it. But I have to customize something about post queries. Can I add custom Post Filter to Content Block and how to do that? Because I want to add a parameter ‘orderby’ => ‘modified’.
Thanks!

Post count: 3343

Hi,

1. Edit td_data_source.php file and add this:

case 'modified':
$wp_query_args['orderby'] = 'modified';
$wp_query_args['order'] = 'DESC';
break;
like here: http://screencast.com/t/DAIpte6g8diM

2. Edit td_config.php file and add this:

,'Modified' => 'modified' like here: http://screencast.com/t/llMbQVqcdJ3

3. Edit a block and select the filter: http://screencast.com/t/fAnYaYHVj

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.