Featured image for directories (page ID)
I’m just wondering if there is anyway to get the ID of the page assigned to a Buddypress component.
What I mean is that when we assign a page to the Members component I can’t find anyway to get its ID :
As get_the_ID() is not working because it’s not the classic loop from WP. And I don’t find any ID stuff in members/index.php
I also checked this function bp_is_members_directory() which works great but no ID involved.
Moreover, the BP_MEMBERS_SLUG isn’t updated when we we update the page slug :/ So we can compare it to the current page’s slug.
I’m in a deadend, the main idea behind is to get the featured image working on these pages (activity, members, groups).
Any idea ?
Thank you 🙂
- The topic ‘Featured image for directories (page ID)’ is closed to new replies.