WordPress.org

Ready to get started?Download WordPress

Forums

Post Tiles
Change the taxonomy? (8 posts)

  1. brooklyncreativedesign
    Member
    Posted 1 year ago #

    I know how to pull in the query for custom post type, but I don't get the custom taxonomy with that query edit on line 379. Do you have any suggestions as to how I can pull the taxonomy with it?

    http://wordpress.org/extend/plugins/post-tiles/

  2. brooklyncreativedesign
    Member
    Posted 1 year ago #

    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.

  3. brooklyncreativedesign
    Member
    Posted 1 year ago #

    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.

  4. ethanhackett
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. brooklyncreativedesign
    Member
    Posted 1 year ago #

    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.

  6. brooklyncreativedesign
    Member
    Posted 1 year ago #

    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.

  7. jeegrobot
    Member
    Posted 1 year ago #

    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.

  8. landwire
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.