WordPress.org

Ready to get started?Download WordPress

Forums

WP Posts Playlist
[resolved] Can widget's permalink url change? (2 posts)

  1. lltlltll
    Member
    Posted 1 year ago #

    Now permalink URL is /?p=(post_id) only.
    for example, Can code change this?

    --- a/wp-content/plugins/wp-posts-playlist/includes/core.php
    +++ b/wp-content/plugins/wp-posts-playlist/includes/core.php
    @@ -150,7 +150,7 @@ function shortcode_posts_playlist_list($atts){
     		foreach($wpdb->last_result as $k => $v){
     			$_out .= "
     			<li>
    -				<a title ='".$v->post_title."' href='?p=".$v->post_id."'>".$v->post_title."</a>
    +				<a title ='".$v->post_title."' href='"  . get_permalink($v->post_id) . "'>".$v->post_title."</a>
     			</li>";
     		};

    http://wordpress.org/extend/plugins/wp-posts-playlist/

  2. Pasquale Ambrosio
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the tip!

    In the next version will update the code as you suggested.
    It's much better as you wrote.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.