I am trying to list custom fields from child post inside a function.
I have setup a custom post type called 'listings' and a child post type called 'items'
I have to use a function for a process and firstly i need to gather all the fields from all the child posts.
I'm firstly trying to display the post_title, (which is using the default wordpress 'post_title') which is not working (code below) it doesnt return anything.
Secondly I need to pull out my custom fields from the child posts 'description','feature1','feature2', but I cant get the page title and I don't know the precise way of requesting the custom fields.
Just wanted to be more precise, you have parent/child relationship created using types - correct? if yes, I would like to know where and how you would like to display posts with which custom fields?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
The parent post type is called 'ebay-listing' the child posts i need to display is called 'ebay-item'
I dont have a 'current property' as such in my code I need to specify a specific 'ebay-listing' post id, in this case post id=8, and display all the child posts of this.
This is my code now (sorry my php experience is patchy at best)
To guide you in right direction I would like to check your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.