Hi there,
I would like to create a new sorting option for the block.
I Newspaper theme I put this code
case 'upcoming':
$wp_query_args['orderby'] = 'event_start_date';
$wp_query_args['order'] = 'ASC';
break;
in td_data_source.php
And this code:
'Upcoming events' => 'upcoming'
in td_generic_filter_array.php
Wher can I find this files in Newsmag?
Cheers
Hi,
Sorry for the delay!
For the td_data_source.php follow this path: http://screencast.com/t/EdfaX1uEj
In case of td_generic_filter_array.php file you can find the code here: http://screencast.com/t/E76OhWjo
Thanks
Hi,
Unfortunately those files aren’t editable via child theme so you would have to do it within the main theme.
You can see the list of files which can be overrided by the child theme here: https://forum.tagdiv.com/child-theme-documentation-newsmag/
Thanks
Hi there,
What would be the best way to update the theme if I can’t use child theme? Just manually like keeping a log of all custom changes and put them back after updating the whole theme? Or updating just the patch? Is there maybe a smarter way of doing it?
Cheers
Hi,
If you can’t use the child theme to change the files you need you can do it manually and keep a log of you modifications like you’ve also noted and use the patch. Follow the theme changes log to see which files are modified and if the files which you’ve altered aren’t changed just copy the patch files via FTP.
Thanks