nekhiaC
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Convert Pro plugin not working – throwing error related to Views
Started by: nekhiaC in: Toolset Professional Support |
2 | 2 | 1 year, 1 month ago | ||
Layouts 2.6 throwing errors
Started by: nekhiaC in: Toolset Professional Support |
2 | 5 | 5 years, 4 months ago | ||
A way to determine if a page that is hierarchical has pages under it
Started by: nekhiaC
in: Toolset Professional Support
Problem: I would like to be able to use a conditional that tests whether a hierarchical page has child pages underneath it. Solution: One way to approach this is to use a View of your CPT filtered by Post Parent (not Post Relationship), where the parent post is whatever parent post you want to test. Depending on how you have things set up, the parent post could be the current post, or the current post in the loop, or you could provide a post ID in a shortcode attribute, etc. Then in the Loop Output area of this View, you can use the items found and no items found sections to include different content based on the number of results. If results are found, you know the current post has children. If not, you know the current post has no children. Relevant Documentation: |
2 | 3 | 6 years, 10 months ago |