Timeline for Query to list all galleries under a parent post?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 20, 2017 at 22:06 | comment | added | Isaiah Y | @Howdy_McGee solved! Solution posted below. | |
Sep 20, 2017 at 22:06 | answer | added | Isaiah Y | timeline score: 1 | |
Sep 20, 2017 at 21:27 | comment | added | Isaiah Y | @Howdy_McGee that's correct. It seems to be displaying random parent/top-level posts, instead of child posts. | |
Sep 20, 2017 at 21:24 | history | edited | Isaiah Y | CC BY-SA 3.0 |
deleted 178 characters in body
|
Sep 20, 2017 at 21:23 | comment | added | Howdy_McGee♦ |
So using your code above, when you view the page with the short code posted in your question that has the id passed to it 941 you don't see the subpage that belong under page id 941 ?
|
|
Sep 20, 2017 at 21:14 | comment | added | Isaiah Y | @Howdy_McGee I've edited my code, does this look right? | |
Sep 20, 2017 at 21:14 | history | edited | Isaiah Y | CC BY-SA 3.0 |
added 243 characters in body
|
Sep 20, 2017 at 21:07 | comment | added | Howdy_McGee♦ |
In your function $parentgal variable doesn't exist. As far as I can tell in your given functions code you're not doing anything with the passed $atts variable either. I suggest checking out the wp_parse_args() function. and edit your question ( using the edit link above ) to update your functions code.
|
|
Sep 20, 2017 at 21:02 | review | First posts | |||
Sep 21, 2017 at 18:02 | |||||
Sep 20, 2017 at 21:02 | history | asked | Isaiah Y | CC BY-SA 3.0 |