Custom post type / taxonomy rewrite archive page 2 gives 404

I’ve followed the code based off this and everything is working perfectly –How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name So I am able to browse taxonomy archives with my/category (or) my/category/subcategory and view a custom post associated with each term as my/category/subcategory/custompost However, I cannot view my/category/page/2/ or my/category/subcategory/page/2/ It gives me a 404. Here is the code I am using. posttype.my.php function create_my_posttype() { register_post_type( ‘my’, array( ‘labels’ => array( ‘name’ => _x( ‘Mys’, ‘post type general name’ ), ‘singular_name’ =>…

Web Design Weekly #156

Headlines Don’t use (most of the time) As the element is landing in browsers it doesn’t mean we have to go crazy with it. Jason Grigsby clarifies when it is a good time to use it. (blog.cloudfour.com) The ServiceWorker is coming, look busy! (youtube.com) Build awesome sites with themeforest! Launch beautiful, responsive websites faster with themes and templates for WordPress, Joomla, Drupal, Magento, Landing Pages and more. (themeforest.net) Articles The Future of Responsive Images Luke Wroblewski’s comprehensive notes on Mat Marquis’s recent talk where he walked through the history of…

Carousel Loop only duplicating

I have problem with looping and WP_Query. Any idea how i can implement the multiple carouselitems please check what html output should be in html So basically one of my goal is each div have a pages <div class= »col-sm-6 col-md-3″></div> should have get all pages from parents which is « Destinations ». So i have an class CarouselItem active. (Actually this is only a slider style for changing the contents purposes). And here the previous what html code should be in wordpress i mean the output in html format. <section class= »carouselItem active »>…

Diving into Webpack

Of late there has been a little bit of hype around this “webpack” thing. Hopefully this post gives you an overview of what it is, how to use it and if it’s worth all the hype. First thing first. The official webpack docs are a little hard to digest so give it time. What is it? webpack is a module bundler webpack takes modules with dependencies and generates static assets representing those modules. As websites are evolving into web apps they are relying more and more on JavaScipt. This results…

Custom Search Template for Custom Post Types

I know this is asked a million times, and I’ve found the solution. It seems fairly straight forward but it’s not working for some reason. I wonder if it has something to do with the fact that I’m performing the search using this plugin: https://wordpress.org/plugins/search-filter/ but I have my doubts. I was hoping someone had some insight, maybe I’m missing something. For reference here is my code: function template_chooser($template) { global $wp_query; $post_type = get_query_var(‘post_type’); if( $wp_query->is_search && $post_type == ‘product’ ) { return locate_template(‘archive-products.php’); } else { $args =…

Web Design Weekly #155

Headlines Refining The Way We Structure Our CSS At Trello We have seen a few posts of late that have given an overview of internal CSS. The more the merry I say! In this post Bobby Grace gives us a look into how Trello structures its CSS. Awesome post! (trello.com) iOS8’s Mobile Safari is a big upgrade for the web (sencha.com) Support this newsletter by getting yourhands on some WDW merchandise → Articles An animated banner ad with no images During the last few months Chris Coyier has been doing…

Color Picker – Theme options

I’ve been creating a Theme off my own back just teaching myself about the in’s and out’s of wordpress API. Firstly this place has been of great use to me! Now for the question, recently just incorporated the WordPress color-picker into my theme options and i’m wondering if there is a way to manipulate the colour output to effect certain bits of CSS. For example. I use my color picker option in theme options to change the color of the site title. I’d just like to know where exactly the…

remove_action conditionally for Custom Post Type – not working

I’m using a Genesis child theme with the ‘Genesis Co-Authors Plus’ which enables support for Co-Authors Plus I’d like to disable the author box everywhere except for the blog. Genesis Co-Authors Plus removes the default Genesis genesis_do_author_box_single and replaces it with gcap_author_box So far I’ve got a conditional function to remove gcap_author_box from the custom post type local-bite I tested the conditional statement with a simple echo and it is working fine. So what is wrong with the following?: // Remove ‘Genesis Co-Authors Plus’ from custom post type add_action(‘init’, ‘lf_remove_author_box’);…