Support » Plugin: Simple Page Ordering » Sort link messes up when viewing a CTP category

  • The Problem:
    When on a page like the following:
    /wp-admin/edit.php?post_type=dd_lyrics&dd_albums=rebel
    The Sort by Order link links to the following:
    /wp-admin/edit.php?post_type=dd_lyrics&orderby=menu_order+title&order=asc#038;dd_albums=rebel

    Notice the #038; in the url? Doing some research I found that this is the HTML entity for the “&” sign. I did a little quick debugging and found that one solution to the problem is to just add the following on line 278 of simple-page-ordering.php:
    $query_string = str_replace("#038;","&",$query_string);

    Note: I am using Simple Page Ordering V. 2.2.3.

    I hope that this helps someone else out and that this plugin can be made even better.

    https://wordpress.org/plugins/simple-page-ordering/

  • The topic ‘Sort link messes up when viewing a CTP category’ is closed to new replies.