WordPress.org

Ready to get started?Download WordPress

Forums

ordered custom fields, ordered meta (3 posts)

  1. arminbw
    Member
    Posted 5 years ago #

    By default the_meta prints out custom fields alphabetically. A rather basic behaviour unsuitable for even very simple tasks (e.g.: printing the keys "title", "first name" and "surename" in the correct order)

    Presenting them differently is possible by arranging the custom fields in the template using get_post_custom_values.

    But updating the template every time a new custom key gets added, isnĀ“t a solution.

    get_post_meta instead, could do the trick. Unfortunately custom keys do not store any additional data, only the key-value pair itself. Not even the date of their own creation is stored.

    Any ideas?

    thx,
    armin

  2. arminbw
    Member
    Posted 5 years ago #

    I found this "closed discussion" in the WP-Advanced Forum: Custom fields not in alphabetical order.

    And there is a plugin under constant development called "More Fields" which actually allows reordering the custom fields. Unfortunately it can only be used by admins with full access to the backend.

    Any tipps?

  3. arminbw
    Member
    Posted 5 years ago #

    Bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.