Remove plugin’s custom post type archive page and single pages [closed]

Actually,this excerpt more with link settings automatically applies from your active theme. In order to fix this problem,Please add the below mentioned filter hook and callback function in your active child theme . function pp_custom_excerpt_length($length) { global $post; // Set content length only of process posts if ($post->post_type == ‘process_posts’ && !is_single()) { //change it … Read more

URL rewrites af

Use add_rewrite_rule(). function wpse325663_rewrite_resource_type() { add_rewrite_rule(‘^resources\/(.+)/?’, ‘resources/?type=$matches[1]’, ‘top’); } add_action(‘init’, ‘wpse325663_rewrite_resource_type’); An important note from the codex: Do not forget to flush and regenerate the rewrite rules database after modifying rules. From WordPress Administration Screens, Select Settings -> Permalinks and just click Save Changes without any changes.

Using post type archive page for taxonomy archive

Have you checked the WordPress Template Hierarchy Diagram To get an idea how wordpress choose the tempalte. I’m not sure but according to the WordPress Template Hierarchy, WordPress will choose default archive.php for custom taxonomy if no special template is specified. That means you cannot not have archive-product.php to use with Custom Taxonomy archive. In … Read more

Create a Page Templete to Display Table Of Content for Custom Taxonomies

Here is the final code I managed to working out: <div class=”content” role=”main”> <?php $term = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’)); echo ‘<h3 class=”tax-title”>’ . $term->name . ‘</h3>’; ?> <div id=”TableOfContents”> <div class=”ui-boxmenu”> <ul class=”sections”> <?php $taxonomyName = “tableofcontent”; $parent_terms = get_terms($taxonomyName, array( ‘parent’ => $term->term_id, ‘orderby’ => ‘menu_order’, ‘hide_empty’ => false )); foreach ($parent_terms as $pterm) … Read more