Support » Plugin: Team Rosters » Fatal error: Cannot redeclare my_get_posts()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mark O'Donnell


    hi tutanhamun,
    That’s my bad. If you search for my_get_posts in mstw-team-rosters.php, you will find it on lines 73 and 75. If you just change those lines to

    add_filter( 'pre_get_posts', 'mstw_tr_get_posts' );

    function mstw_tr_get_posts( $query ) {

    you should be good to go. I will add this fix to the next release, which should be out this week pending fixes to a couple of featured image/thumbnail issues.

    Sorry for the inconvenience.


    Plugin Author Mark O'Donnell


    This fix will be included in the next release, which will hopefully be next week.

    [ Signature moderated. ]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Cannot redeclare my_get_posts()’ is closed to new replies.