How to make Buddypress competely private
Started by: hugoC-3
in: Toolset Professional Support
Quick solution available
2
12
4 years, 10 months ago
hugoC-3
I am not able to register toolset to my website .
Started by: traceM
in: Toolset Professional Support
Quick solution available
2
7
4 years, 10 months ago
traceM
Is there a feature where Types can show the user’s gravatar image?
Started by: StanleyT8485
in: Toolset Professional Support
Quick solution available
2
3
4 years, 10 months ago
StanleyT8485
How to remove taxonomy pages
Started by: nickW-7
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to disable their taxonomy archives.
Solution:
This can be done with the code below.
/**
* Disable the taxonomy archive pages
*/
add_action('pre_get_posts', 'jb_disable_tax_archive');
function jb_disable_tax_archive($qry) {
if (is_admin()) return;
if (is_tax('tax-slug')){
$qry->set_404();
}
}
Add the above to your custom code section in Toolset -> Settings -> Custom Code and ensure that you've activated the code.
Finally change the 'tax-slug' to the slug of the taxonomy that you want to disable the archive for.
2
5
4 years, 10 months ago
nickW-7