Displaying disabled posts only to post author I have a simple photo gallery where logged in users can upload photos. I've set the default status for all pictures to disabled, is it possible to show disabled pictures only to user who just published it, and when status is set to enabled everyone can see it?
There are a couple of aspects to consider in your question.


Display entries to the author who created them
Display entries which are disabled


I'll assume your Channel/Structure is named "Gallery Image"...

First, establish the User ID of the logged in User:

{% set loggedInUserID = currentUser.id %}


...then find Entries authored by the Logged in User:

{% set galleryEntries = craft.entries.section('galleryImage').authorId(loggedInUserID) %}


(Entry Author ID parameter info...)

... then loop through any entries which have a Status of "Disabled"

{% for entry in galleryEntries.status('disabled') %}
    &lt;h2&gt;Your draft Gallery entries&lt;/h2&gt;

    ...(template code)...
{% endfor %}


(Entry Status parameter info...)



Another variation which you could use, which moves the Status parameter out of the For-Loop, is:

{% set galleryEntries = craft.entries.section('').authorID(loggedInUserID).status('disabled')%}
{% for entry in galleryEntries %}
    &lt;h2&gt;Your draft Gallery entries&lt;/h2&gt;

    ...(template code)...
{% endfor %}