Viewing 2 replies - 1 through 2 (of 2 total)
  • Ben Meredith

    (@benmeredithgmailcom)

    Hey golddave,

    I figured out a fix for this (and I submitted it just now to Norcross to see if it can be included in the official plugin), but in case you are curious in how to make the plugin pass the title to YOURLS, you can add the following code in place of lines 310-312 of yourls-link-creator.php (it adds a line)

    $title          = get_the_title( $postID );
    			$post_url	= get_permalink($postID);
    
    			$yourls_r	= $yourls.'?signature='.$api_key.'&action='.$action.'&url='.$post_url.'&format='.$format.'&keyword='.$keyword.'?title='.$title.'';

    so, the entire php file looks like the one at https://github.com/Benunc/yourls-link-creator/blob/master/yourls-link-creator.php

    Never update php files through the WordPress dashboard. Always use a text editor and ftp or ssh.

    Let me know if you need help getting it to work.

    Plugin Author Andrew Norcross

    (@norcross)

    I’ve updated the plugin so it now will pass the post title into YOURLS

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not Title in YOURLs’ is closed to new replies.