Timeline for How to break meta values into different items and avoid duplicates?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 24, 2020 at 17:10 | vote | accept | artist learning to code | ||
Jul 24, 2020 at 17:10 | comment | added | artist learning to code | thank you very much! I'm actually stupid and this answers the question, but the metabox I needed was another one (not the one I have been calling)....I will edit my question to match the answer, remove the name of people (sensitive data) | |
Jul 24, 2020 at 17:07 | vote | accept | artist learning to code | ||
Jul 24, 2020 at 17:10 | |||||
Jul 24, 2020 at 16:05 | comment | added | shanebp | Answer updated. | |
Jul 24, 2020 at 16:03 | history | edited | shanebp | CC BY-SA 4.0 |
added 182 characters in body
|
Jul 24, 2020 at 15:26 | comment | added | artist learning to code | Ok, I think I was placing it in a stupid place inside the select that'ts why it wasnt working ._. haha!... When var_dump $authors (the data I need to break down) it shows the right data (updating question with it) | |
Jul 22, 2020 at 21:34 | comment | added | shanebp |
Try: echo '<pre>'; var_dump( $query_authors ); echo '</pre>';
|
|
Jul 22, 2020 at 21:03 | comment | added | artist learning to code | How do I show you the data? I tried using the print_r but it doesn't show anything at all :/ | |
Jul 22, 2020 at 1:59 | comment | added | shanebp | Show us the data that you need to process into 'different items' | |
Jul 21, 2020 at 23:55 | comment | added | artist learning to code | I have a metabox that allows the user to select published posts from a custom post type. The metabox itself needs to behave this way. The user selects from posts there. I need to break the multiple posts selected there to different items in my query :c | |
Jul 21, 2020 at 21:56 | comment | added | shanebp | Yikes. So the real problem is the metabox. Forcing people to input uniform data is always tough. You could use jquery to show a single input field + a button to add another author input field. Juggling the data after input is never very feasible. | |
Jul 21, 2020 at 20:25 | comment | added | artist learning to code | The problem is that my dropdown is displaying the authors as entered in the custom metabox that allows different values so some will display: Name1, Name2, Name 3 in a line, then another line with Name 1 then another line with Name 2 and so on if people chose only one in the meta value. But the issue is with multiple ones - need to break them into separate values and not repeat if used in different combinations :O | |
Jul 21, 2020 at 20:05 | history | answered | shanebp | CC BY-SA 4.0 |