Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter brooklyncreativedesign

    (@brooklyncreativedesign)

    I’ve been able to pull the custom taxonomy into the admin area by modifying line 166.

    I changed the default line:

    // Get all Post Categories
    	$categories = get_categories();

    to

    // Get all Post Categories
    	$categories = get_categories(array ('taxonomy' => 'resource'));

    We can modify the query there to call a custom taxonomy. I still however, have not figured out how to have the frontend communicate with this new taxonomy to display the new categories on the homepage.

    Thread Starter brooklyncreativedesign

    (@brooklyncreativedesign)

    You’ll also want to change the same piece of code on line 62 as well. And these changes are in the post-tiles.php file.

    Plugin Author ethanhackett

    (@ethanhackett)

    Awesome! Thanks for sharing your code. I know there have been a few users in the past that wanted to use custom post types. I haven’t built it into the core yet but maybe I can get your documentation to speed up that process.

    Thread Starter brooklyncreativedesign

    (@brooklyncreativedesign)

    Ethan, I only have about half of it working. I can get the posts and the taxonomy on the admin side, and the posts on the frontend, but I can’t get the taxonomy for the frontend to work. Do you have any suggestions on how to do that next part?

    If I change a color on the admin panel, it doesn’t reflect on the front-end, and the front-end doesn’t call the different categories.

    Thread Starter brooklyncreativedesign

    (@brooklyncreativedesign)

    FWIW, I decided the easiest way to go about doing what I needed to be done is to change the native “posts” function to be the post type that I wanted to use post tiles for, and created a CPT that I will use as my blog posts. Turns out for me, it was easier to create a new post query to pull the CPT on the blog template page than it was to figure out how to change the plugin to be able to work best with a CPT.

    Hi Ethan, I’ve created a version that works with custom post types and custom taxonomies. I could paste the code I’ve changed or send the modified file. The code meets my personal requirements and it could be easily modified with different post types and custom taxonomies or it could be completed with the relevant backend settings.

    Please let me know which is the best way to make it available for the community and thank you for this great plugin.

    Hi jeegrobot,
    Could you post the code here? Or maybe put it on a gist or github? That would be great!
    Thanks,
    Sascha

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change the taxonomy?’ is closed to new replies.