I want to display brother pages and tried to follow guide from wp types but failed to get output.
My Parent - WordPress Post default
My Child - Entries (CPT)
I successfully displayed all child entries in parent post using views. I want to display lost of sibling entries belong my default viewing entry post.
I created 2 content templates -->
Alt Parent:
[wpv-view name="list-sibling"]
Alt Child:
[wpv-post-body view_template="alt-parent" id="$post"]
and 1 View -- List Sibling
Content Selection - Entries
Post parent filter- Select posts whose parent is the current post in the loop.
Just have - [wpv-post-link]
I have custom content template for entries as follows,
[wpv-post-body view_template="None"]
[wpv-post-body view_template="alt-parent"]
Output:
Child content
No Items Found.
Kindly help me to display brother entries for my project.
Thank you for contacting our support forum. I will be more than happy to assist you with this issue.
Would you mind providing me with admin access to the website so that I can have a look? I also need a link to the view as well as the page where you are currently testing this.
Thank you for the patience, It seems that the issue was the filter. It seems you added the Post Parent filter and not the Post Relationship filter since you are listing what are essentially brother/sister posts correct?
The view is working but it list all the entries. I need Siblings/brothers but it just get me whole population.
Kindly check any Post (which is my parent) where child are already there. When you click respective child you can notice it just fetch all of my entries child.
I changed my theme to Newspaper and Content temples was not working. I registered the function get_content and I can able to see content templates are working but the Sibling/Brother pages are showing as No items found.
When I change theme it is working fine but the same views is giving no result for Newspaper themes.
Check any CPT named Entries.
Thanks in advance.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.