Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • koded1999
    Participant

    @koded1999

    @danbp and @bdollin what if i want the subject to be populated by post title instead?

    Thanks


    koded1999
    Participant

    @koded1999

    @henrywright i managed to fix that and is working perfectly.

    but i have another problem.

    i will like to populate the subject automatically when user click the private message button from post

    pls how can i achieve this.

    thank you


    koded1999
    Participant

    @koded1999

    oops the html for removed. however, i managed to fix that and is working perfectly.

    but i have another problem.

    i will like to fill the subject automatically using the post title.

    pls how can i achieve this.

    thank you


    koded1999
    Participant

    @koded1999

    @henrywright Please i will like to add private message button in post side bar. i used the code below it works but doesnt populate the author automatically. how can i fix this thanks in advance.

    function bpfr_message_shortcode() {	
    $author = get_the_author();
    $message = 'Login to contact advertiser!';
    
    if( is_user_logged_in() ) {
    	return '<a>MESSAGE ADVERTISER</a>';
     } else {
        return $message;
     }
    } 
    add_shortcode( 'ksam', 'bpfr_message_shortcode' );

    koded1999
    Participant

    @koded1999

    i am struggling with this as well. i used the code below in one of my sites and it populate the author automatically but doesnt on my second site, quite strange. any help pls will be appreciated

    function bpfr_message_shortcode() {	
    $author = get_the_author();
    $message = 'Login to contact advertiser!';
    
    if( is_user_logged_in() ) {
    	return '<a>MESSAGE ADVERTISER</a>';
     } else {
        return $message;
     }
    } 
    add_shortcode( 'ksam', 'bpfr_message_shortcode' );
Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar