Best way to group posts based on custom post type terms
Best way to group posts based on custom post type terms
Best way to group posts based on custom post type terms
There are definitely some issues, I’d question what exactly you’d gain from having the same structure for all. You could create conflicts if you have two different posts with the same slug. There would be nothing enforcing slug uniqueness between post types, so you’d have to write that code yourself to run whenever a post … Read more
I’ve not seen a “clean” way to do this – happy to learn it from someone else if they know. However, the way we’ve managed this in the past is to setup a page whose slug is ‘projecten’ with a custom page template that behaves and acts like an archive page. Then add child pages … Read more
add_rewrite_rule using custom taxonomy and year
WordPress Types have that features. So, you don’t need to code by yourself or use custom post type generator. I hope you would get answer in there. Sorry for quick answers without modification your codes 🙂
How to Fix WordPress 500 Internal server error due to custom post type
YearWise Categorywise Post
Well I did it.. <ul id=”filter”> <li><a href=”#” class=”current” data-filter=”*” title=””>*</a></li> <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); ?> <?php $term_id = $term->term_id; $taxonomy_name=”categories”; $termchildren = get_term_children( $term_id, $taxonomy_name ); foreach ( $termchildren as $child ) { $term = get_term_by( ‘id’, $child, $taxonomy_name ); echo ‘<li><a href=”#” data-filter=”.’ . $term->slug … Read more
Yes, it´s totally possible, I just did that for a similar project some weeks ago. I found this very helpful: How to pass extra variables in URL with WordPress Basically the process is the following: Register new query_vars, fill them with life, pass them to a specific template which looks for them and then do … Read more
Ok, I just figured it out. Sometimes writing it down gives you a clearer perspective about your own problem. I didn’t know this before, but _x() provides context, and I was providing a context that does not exist. So I just eliminated the whole context thing from the equation by switching the _x()s for regular … Read more