WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts in Custom Menu
[resolved] Date fields for menu title don't work (5 posts)

  1. fvschie
    Member
    Posted 5 months ago #

    Love the plugin. Had something similar coded up before I got over my Not Invented Here syndrome, and yours has some awesome features.

    Anyway, I want to list posts with a menu title like:
    #post_title #post_date('j n Y')

    This doesn't work. Title shows up, date does not. Neither do any of the others I've tried, including %post_modified, with or without formatting.

    Any ideas?

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

  2. Diana Koenraadt
    Member
    Plugin Author

    Posted 5 months ago #

    Hi fvschie,

    thank you for reporting this, I'll get on it right away!

    Kind regards,
    Diana

  3. Diana Koenraadt
    Member
    Plugin Author

    Posted 5 months ago #

    I've tracked down the cause. I'll check in a new version ASAP, but this might take a while since I'd like to add automated unit and integration tests to my plugin first. Hope I'll get to it this weekend.

    For those of you who are code-savvy: For some reason the result of the replace_ functions is no longer returned. I'm sure it was before, as confirmed here: https://wordpress.org/support/topic/unexpected-t_function-1?replies=19

    Kind regards,
    Diana

  4. Diana Koenraadt
    Member
    Plugin Author

    Posted 5 months ago #

    If you need this functionality, you can grab the latest Development Version of the plugin.

    Kind regards,
    Diana

  5. Diana Koenraadt
    Member
    Plugin Author

    Posted 4 months ago #

    Tagged version 0.9.4 with fix for this.

    Tech talk:
    Apparently, a variable that I used was in global scope before and in a new release of WordPress had gone out of the global scope, which is why this worked in a previous version of WordPress and didn't work anymore in the new version.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.