Forum Replies Created
-
AuthorPosts
-
July 2, 2024 at 4:41 pm in reply to: Custom Attachment/Media Results Display – Advanced Title Field #48668
bdkelly
ParticipantThank you! No worries about the delay – I’m just sorry I didn’t think of the file manager before. It would have made things go quicker.
Anyway, thanks again. I appreciate you taking a look and fixing!
July 2, 2024 at 3:58 pm in reply to: Custom Attachment/Media Results Display – Advanced Title Field #48663bdkelly
ParticipantYou cannot access this content.
July 1, 2024 at 2:17 pm in reply to: Custom Attachment/Media Results Display – Advanced Title Field #48649bdkelly
ParticipantYou cannot access this content.
June 28, 2024 at 3:06 pm in reply to: Custom Attachment/Media Results Display – Advanced Title Field #48628bdkelly
ParticipantYou cannot access this content.
bdkelly
ParticipantPerfect! You were right, I changed post_tag to category, and it looks like we’re good to go now. I’ll be back in touch if we run into anything else.
Thanks again!
bdkelly
ParticipantThank you! I appreciate the effort that has gone into creating this for us.
I’ve added and tested it and users that have access to both areas can get results, but users with access to only one area aren’t getting results at all, within their area or not.
bdkelly
ParticipantYou cannot access this content.
bdkelly
ParticipantWe have our site set up kind of in reverse, where the post/page visibility isn’t restricted by the level, but the member is restricted from seeing content by their level. We have two categories of content, and users can see one, the other, or both depending on their subscription. So I’m not sure getting the access level of the post/page works, but will leave that to you and your expertise.
As I’m writing this out, I’m thinking we do have the posts/pages assigned to two different categories – A and B. Then PMPro determines what categories the membership level can access. Would pulling the category of the post/page and then checking it against the membership level work?
They do have a get membership level filter. Would this help?
pmpro_get_membership_level_for_user
Return the first active membership for a user.
/** * Retrieves the first active membership for a user. * * @since 1.8.5.4 * * @see pmpro_getMembershipLevelForUser * * @param object $level Level object. * @param int $user_id The User ID. * * @return object $level Level object. */ apply_filters( ‘pmpro_get_membership_level_for_user’, $all_membership_levels[ $user_id ], $user_id );Parameters
$level
object
$user_id
intReturn Value
$levelSource
File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/functions.phpbdkelly
ParticipantI think they have the right documentation for you. I’ve logged in and saved several pages as .mhtml files so you can see the whole page without logging in. Take a look and let me know if any of these will work for you.
-
AuthorPosts