WordPress.org

Forums

Category Posts in Custom Menu
[resolved] Git Repository? (5 posts)

  1. Ville Mattila
    Member
    Posted 3 years ago #

    Hi,

    I have made a slight (three-line) modification into your plugin to enable also custom post types to be appended in the menu. I was wondering whether you have the plugin code in a Git repository somewhere (for example Github ;) that I could fork?

    Thanks,
    Ville

    http://wordpress.org/extend/plugins/category-posts-in-custom-menu/

  2. Ville Mattila
    Member
    Posted 3 years ago #

    Here are the code I added to lines 112-114 in category-posts-in-custom-menu.php

    $tax = get_taxonomy($menu_item->object);
    $customPostTypes = $tax->object_type;
    $query_arr['post_type'] = $customPostTypes;
  3. jhewgley
    Member
    Posted 3 years ago #

    Ville,

    Thank you so much for posting this enhancement! I inserted these 3 lines in the plug-in on my site and it worked like a charm. You saved me some time. Thanks again!

  4. Diana Koenraadt
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for this suggestion. I need to test it myself and haven't gotten around to doing that. Rest assured, I've seen it and will happily extend the plug-in. I'll mark the topic as resolved as soon as I've implemented it. Might take a while, I'm quite busy lately. Please bear with me.

  5. Diana Koenraadt
    Member
    Plugin Author

    Posted 2 years ago #

    Your change has been incorporated in version 0.7. Thank you for supplying it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Posts in Custom Menu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags