Hi
On a category or tag page, I don’t want to display the normal posts. I want to disable it, is it possible via hook/filter without having to create a category.php and tags.php in a child theme.
When a category page loads, I want to display my own thing, compltely custom code. I am currently using genesis framework and would like to move to Generate Press.
I do the following in genesis. Firstly, disable the loop (genesis_loop), then create an action to add my own function instead – audio_player().
Can this be achieved in GP?
add_action('genesis_before_content_sidebar_wrap', 'qc_category_player');
function qc_category_player()
{
if (is_category()) {
remove_action('genesis_loop', 'genesis_do_loop'); // Remove the standard loop
add_action('genesis_loop', 'audio_player'); // Add custom output
}
}
function audio_player()
{
...
}