Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter aw2

    (@aw2)

    Hi David,

    Thanks.
    But I want more capabilities for the user’s than an author. I use the User Role Editor plugin for this. Works excellent, but somehow it’s not possible to hide others posts.
    With the “Peter’s Login Redirect”-plugin it’s possible to redirect a user to their own post. This works pretty fine as well but it would be the best if it’s possible to hide with adminimize.

    Thanks you!

    Thread Starter aw2

    (@aw2)

    Hi Bruha,

    Thank you very much for your reply.

    I’ve tried your plugin, but I get 2 problems:
    1) the plugin-code is visible on the top of my website
    2) my admin is gone. If I go to https://www.mydomain.com/wp-admin/ looks like this on my screen:

    _______________

    <?php
    /*
    Plugin Name: Manage Your Media Only
    Version: 0.1
    */
    
    //Manage Your Media Only
    function mymo_parse_query_useronly( $wp_query ) {
        if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false ) {
            if ( !current_user_can( 'level_5' ) ) {
                global $current_user;
                $wp_query->set( 'author', $current_user->id );
            }
        }
    }
    
    add_filter('parse_query', 'mymo_parse_query_useronly' );
    ?>
    
    Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/plugins/manage_your_media_only.php:9) in .../public_html/wp-includes/pluggable.php on line 890

    _______________

    I deactivated all other plugins.
    Am I doing something wrong.
    I really appreciate your help.

    Thank you very much in advance!
    Arthur

    aw2

    (@aw2)

    Hi there,

    I’m using the excellent paragrams theme for my blog.
    I want to hide certain categories from the metadata. I tried hard to do what’s described here in the forum, but it doesn’t seem to work.

    Here’s my code from the theme:

    <div class=”postmetadata”>
    <?php printf(__(‘%s’), get_the_category_list(‘ | ‘)); ?> ˑ 
    </div>

    Any help is very much appreciated.
    Thanks!

    Arthur

Viewing 3 replies - 1 through 3 (of 3 total)