WordPress.org

Ready to get started?Download WordPress

Forums

Content Types
[resolved] Retrieve options from field setup (7 posts)

  1. minn
    Member
    Posted 3 years ago #

    Is there a way to retrieve options from field setup?

    I'll try to explain.
    I have created Content Type and added field with 'checkbox(es)' type. Now I need to display these checkboxes in my template. I'll use them for custom search.

    Thanks.

    http://wordpress.org/extend/plugins/content-types-wordpress-plugin/

  2. Scott Cranfill
    Member
    Posted 3 years ago #

    Why was this marked resolved with no replies?

    I have this question, as well. The custom checkboxes don't do me any good if I can't query for them.

    I've tried using meta_query with the key and value, but it seems that something about the way the plugin formats the value of these checkbox options makes it impossible for that to work.

    Any help would be greatly appreciated.

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    The original poster must have resolved their issue.

  4. Scott Cranfill
    Member
    Posted 3 years ago #

    I did enough digging to figure out that the values are stored as serialized strings, but I am still unable to come up with a way to query this data.

    I've resorted to using renamed Tags, but it's not as elegant an interface for my editors, as they have to either type in the tag every time or click the link for most-used tags and then click the one they want.

  5. Scott Cranfill
    Member
    Posted 3 years ago #

    Mr. Reed,

    I would really appreciate an answer to this question. Is there a way to access the data stored in custom checkboxes?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Hint: Post a new topic.

  7. iambriansreed
    Member
    Plugin Author

    Posted 3 years ago #

    You would use a combination of get_post_meta and maybe_unserialize function. Further explanation requires a specific example - contact me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic