hello
i have a masonry that displays blog posts
some of my blog posts are password protected
but masonry does not show them in the masonry main listing
i need them to be displayed
and when someone clicks on them, they will then have to enter a password
how can i then let users know that these posts exist if they do not show on the masonry listing ?? that’s not logical
any fix to this ?
Hey Mohamad,
Thank you for the inquiry.
You may need to edit the enfold/config-templatebuilder/avia-shortcodes/av-helper-masonry.php file directly in order to show the password protected posts. Look for this block of code around line 948, and remove it.
//check if post is password protected
if( post_password_required( $id ) )
{
$this->loop[ $key ]['content'] = '';
$this->loop[ $key ]['class'][] = 'entry-protected';
$this->loop[ $key ]['thumb_ID'] = '';
$this->loop[ $key ]['text_before'] = av_icon_display( 'closed' );
$this->loop[ $key ]['text_after'] = $this->loop[ $key ]['date'];
}
Best regards,
Ismael
Thank you Ismael
I will try this one later but i found another method just in case anyone is interested to know
I have created a masonry gallery, added profile photos for each post, redirected the photos to the actual posts
I know this is a turn around but i needed a solution within my deadline so i figured out this method
Thanks anyway :)
will definitely try your solution when needed