WordPress.org

Ready to get started?Download WordPress

Forums

404 page for attachments on private posts (3 posts)

  1. sccr410
    Member
    Posted 1 year ago #

    I have created custom user role with the following:

    add_role('customer', 'Customer', array(
    			'read'        => true,
    			'edit_posts'  => false,
    			'delete_posts'=> false,
    			'read_private_posts' => true
    		));

    I then created a custom post type, added a post to the custom post type via the admin, uploaded image attachments and set the post to private. In the content of the post I link to an attachment page. On the front end, when logged in as an administrator user I can see the attachment page just fine. When logged in with a user account having the "customer" role I can view the private post just fine but trying to view the attachments to this private post return a 404 page.

    Is this a core bug?

  2. paulohmota
    Member
    Posted 9 months ago #

    im having the same problem, same situation.
    does anyone knows how to fix this?

  3. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    This thread references WP3.5.1 - is that what you are using? Please start you own thread per:

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

Topic Closed

This topic has been closed to new replies.

About this Topic