I want to display child-posts, in form of a thumbnail, in the parent post in my custom post type.
I used these codes https://wp-types.com/documentation/user-guides/querying-and-displaying-child-posts/ but I was unable to insert the id in _wpcf_belongs_property_id
in my custom fields. It said I have no rights to do so.
I can get the child posts to show the parent in form of a title, but how can I make the parent post to list the children?
Thanks for help!
https://www.ads-software.com/plugins/types/
]]>Every time a post is edited and updated, regardless of whether the permalink is changed or not, a duplicate ID is created in any posts which happen to be *child* posts of that post.
Is there any fix to this? – or do you know a simple way to edit the database so that unique IDs can be created for all child posts again?
Hope to hear back from you.
Thank you
https://www.ads-software.com/plugins/enhanced-custom-permalinks/
]]>I have done the following to troubleshoot getting the child post to reference the child site’s attachment URL vs. the parent sites attachment URL
Let me know what I’m missing to get the child site’s image URLs to match the image URL hosted on the child site, and not the parent site.
https://www.ads-software.com/plugins/threewp-broadcast/
]]>echo $child_post->fields['location'];
This returns the word ‘Array’ on the front end, how do I actually return the array values?
Can’t find much additional info on displaying fields of child posts other than this page
Thanks for any help or guidance…
https://www.ads-software.com/plugins/types/
]]>I was useing version 1.22 of ThreeWP Broadcast and have had great success with linking posts to child posts on other blogs. I updated to 1.23 this morning and I am no longer able to create a link between blog posts. When I try to create the join using find orphans I get two status messages. One that the join was created and another below it that says no orphans were found…
I reinstalled 1.22 and was was able to get the orphan linking and updating between post working again.
Thanks,
Barrett
https://www.ads-software.com/plugins/threewp-broadcast/
]]>I cant display the child posts fields when i use a certain type of query. I use this query, to have more control of the loop, and display the child posts in ASC order:
$childargs = array(
'post_type' => 'recorridos-items',
'numberposts' => -1,
'orderby' => 'ID',
'order' => 'ASC',
'meta_query' => array(array('key' => '_wpcf_belongs_recorridos-pag_id', 'value' => get_the_ID()))
);
$recorridos = get_posts($childargs);
foreach ($recorridos as $recorrido) {
}
When i use this query, the child posts fields simply not appear.
Instead, when i use the normal way of querying the child posts, it works perfectly, and show all the fields
$recorridos = types_child_posts('recorridos-items');
foreach ($recorridos as $recorrido) {
}
But, i need to display the child posts in ASC order. There is another way to display the child posts in ASC order and display the child posts fields?
I really need help to ressolve this issue! thanks!
https://www.ads-software.com/extend/plugins/types/
]]>On my Page edit screen, I was able to properly select the Event that I wanted to be the parent. And also on my Event page I can see that the child page is properly filled in the “Fields” area (where other children of the Event post are).
However, now I’m trying to access these in a plugin I’ve written. I have my post ID for my event, and I’m trying to get the children of that Event like so:
$params = array(
'post_parent' => 16,
'post_type' => 'page'
);
$survey_page = get_children($params);
This always returns empty. And if I check in the database, I see that for my child post, there isn’t anything the post_parent field.
So how are these relationships getting stored and is there a different function I should be calling to get the children of a custom post type?
https://www.ads-software.com/extend/plugins/types/
]]>Is it possible, through plugins or coding, to create posts that have as a unique URL the following example:
www.site.com/parent_post/child_post
I’m obviously not talking about category urls, since the real post URL willalways be www.site.com/post, despite you could also access through category navigation.
I know that this is possible with pages, but I’m also aware that having thousands of pages causes performance trouble to wordpress to the point of timeout errors.
Just hope I was clear enough with the explanation and what I want to achieve.
]]>I have a project I am undertaking and I need some sage advise from some pros here on the site.
They want the ability to scroll the movie information to the right or the left. I figure I can do a loop that pulls the information in for the movie including the poster, movie title, rating, run time, link to the synopsis and link to the trailer. The movie title could link to an individual page with detailed info about the movie.
What I am not sure about how to do is how to add the showtime information. The movie may be showing at different times on different weeks, but will almost always be showing multiple weeks. I also need the post to expire once the show time date has passed. I know I could do a child post, but I don’t want the movie info to have to be entered twice and the posts have to sort first by opening date, then by theater.
Any ideas?
]]>