WordPress.org

Ready to get started?Download WordPress

Forums

WordPress post meta complication (1 post)

  1. akmjenkins
    Member
    Posted 3 years ago #

    This is not a bug so much as a request for help. Maybe somebody has done this before and know how to do it right.

    I want to store several post meta with they key 'option' to my post. The thing is, each option is actually an array that has 2 properties.....If i store them as option_1_property1, option_1_property2, option_2_property1, etc, it makes querying based on a certain option value impossible. I can store them each with the meta key 'option' but I'd have to use a serialized array, which again, ruins my ability to query based on the value.

    Has anybody needed needed to store such data as post meta before? Any ideas on how to store the data so my ability to query is still intact?

Topic Closed

This topic has been closed to new replies.

About this Topic