Postmeta Table question
-
Hello Peter
I came to try this plugin as I want to group similar data stored in posts on my site using a value which is only visible from the Postmeta table. So, with this in mind I search and upon finding your app was very impressed with everything from the support to the documentation and the user community who have given you many praises. Now onto my questions. Using the Post table as the parent I have been able to select the the posts in question and limit them with a where clause so that I only receive those unique posts in the results. For each post there are many entries which are related to the Post, which I want to display as my projects goal. This should be accomplished using the one2many relationship and a parent/child connection. When I view the results it is working and I get the relevant entries which are related to the Post. But it isn’t what I want to see. It seems to be due to how the postmeta table stores its data. In fragments, and unrelated, using only 4 fields to store various types of meta data. In my case, for PostID 1234 I want to see all related meta data of a certain type, however the postmeta table isn’t structure in a way that I can see the data like this. In order for me to see all entries of people who have rsvp to a PostID 1234, I must identify the postmeta records which matches the postID 1234, then within this subset of records I will have a list of people who have made an RSVP, but I only have a UserID of the person to use to identify them, where I need to use some looping logic along with a [SQL:SELECT in (SQL:SELECT) search[, followed by a for each type statement. So my question which now seems very confusing is asking if it is possible to use WP Data Access to make sense of the Postmeta table? Just as an aside, even though this hasn’t been working, I have found other uses for the plugin which I will be able to make use of. Thank you
- The topic ‘Postmeta Table question’ is closed to new replies.