Live reload preview just reloads forever

This is from the Editorskit plugin, it is not a part of WordPress. If it’s broken you will need to contact their support routes. ( Based on finding the description text verbatim in a github search, resulting in a file in the preview extension of editorskit )

preview_post_link for Custom Post Types

Two problems here: #1 You’re missing the $accepted_args argument in: add_filter( $tag, $callback_function, $priority, $accepted_args ); Check out the Codex here for more info on that. #2 Note that $link . “?program_year=2016” is problematic, since it gives us this kind of link: /?p=123&preview=true?program_year=2016 But using instead add_query_arg( [ ‘program_year’ => ‘2016’ ], $link ) we … Read more

Change target of view link in admin

The “View” link I believe you were referring to isn’t the only place the url should change so I took the liberty and changed them in the other spots as well. This affects only published posts and pages. It’s quite a bit of code but this should do it. // Change the “View” link on … Read more