Tag Info

New answers tagged

1

Before I start again, I just want to reinforce the fact you should not run a custom query in place of the main query on your archive pages. Please see this post to learn when you should use a custom query and where not. I you do not switch back to the default loop, then my solution will not work In the previous post we have already solved the issue to only ...


0

There was a stray flush_rewrite_rules() in my functions.php, commenting it out made everything work properly. From there I just had to include the custom post type's posts in the archives page, a la http://css-tricks.com/snippets/wordpress/make-archives-php-include-custom-post-types/


0

If you want something to behave like a "normal" wordpress author then the best thing to do is to create a "dummy" account for it, and if you really want disable the possibility to login to it. For any other solution that mimics the functionality in other ways you first need to fully understand the functionality you are trying to mimic, and by your own words ...


1

Try give a name for your rewrite, like so: 'rewrite' => array( 'slug' => 'news-updates-archive', 'with_front' => true, 'feeds' => false, 'pages' => true, ) So you will avoid any problem. Also, the last functions you're using are unnecessary. You can setup it on register_post_type: 'taxonomies' => ...


0

A simple way to do is to edit your theme's "search.php" (copying it from the parent theme into your child theme's directory first if you're using a child theme) and then before the posts loop putting something like: <?php if ( $tag = get_term_by( 'name', get_search_query(), 'post_tag' ) ) { ?> ...


1

This turned out to be a quite extensive little project for me. BASIC IDEA My approach was to go with a custom archive page as this seems to be the best approach here. The thing with custom taxonomies is that if you have a structure in place, changing that would become a real messy expedition. Also, I always try to stay away from custom queries if ...



Top 50 recent answers are included