Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter frelonguepe

    (@frelonguepe)

    If you want a workarround for the “Aissgned groups” text…….

    function real_edit_post_link( $text = null, $before = '', $after = '', $id = 0, $class = 'post-edit-link' ) {
    	if ( ! $post = get_post( $id ) ) {
    			return;
    	}
    
    	if ( ! $url = get_edit_post_link( $post->ID ) ) {
    			return;
    	}
    
    	if ( null === $text ) {
    		$text = __( 'Edit This' );
    	}
    
    	$link = '<a class="' . esc_attr( $class ) . '" href="' . esc_url( $url ) . '">' . $text . '</a>';
    
    	echo $before . $link . $after;
    }

    And the you call this function instead of edit_post_link. It is the exact same core wp function but without the filter. Since it does not use the filter, the useless text is not appended to the edit link. Hopefully we’ll get a checkbox to avoid this? thanks ??

    It does not deal with the edit text being displayed where it should not.

    Wow thank you this saved me a nice headhache !
    This is pretty stupid tho, the way the meta box works should be the same as the shortcode does. And using the name as an ID is really a bad idea.
    I had to rename all my 20 roles to make them match exactly the ID. And then I had to re-select the user roles for every page…
    This plugin is great but if the author could read this and fix those really little bugs it would be awsome (it shall not take more than 5 minutes).

    Well if this is not too late, the solution to your problem is to replace “Administrator” by “administrator”… yes this plugin is case sensitive…
    If you want to specify multiple user roles, you mustn’t include any space before and after the comma.

    Thread Starter frelonguepe

    (@frelonguepe)

    Thank you for your support.
    I successfully changed the title of authors page by using this function :

    function change_the_title() {
    	if ( is_author() ) {
    		return "Posts from " . ucfirst(strtolower(get_the_author_meta( 'first_name' ))) . " " . ucfirst(strtolower(get_the_author_meta( 'last_name' )));
    	}
    }
    add_filter('pre_get_document_title', 'change_the_title');
    Thread Starter frelonguepe

    (@frelonguepe)

    Yes, I mean for my personal use, it does not meet my expectations since I don’t want visitors to see authors username as it contains an ID (potential security issues).
    Your plugin is working great otherwise, I was just wondering if it was an issue with my installation or just if it’s not included in your plugin (as it seems to be the case).
    I could’t find any hack to change the tab title. I can change the title using the_title hook but it does not replace the html <title> tag :/

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