Help with Core Mods

From the provided error, it appears you have added in some custom code to your functions.php file in your theme. Suggest commenting out the last changes you made, but the error is clearly stating that line 50 is the culprit so that would be a good starting point if you’re unsure. If this has happened … Read more

Redirect old Posts URL to new URL

There are lots of solutions to redirect from the old post URL to the new post URL. You can install a plugin “Safe Redirect Manager” and set it from the admin panel. You can write some snippet in the functions.php file as: add_action(‘template_redirect’, ‘post_redirect_by_custom_filters’); function post_redirect_by_custom_filters() { global $post; // this array can contain category … Read more

Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?

1.) First, when creating a shortcode, you must return data, not print. 2.) Yes, you must explicitly specify the post id, print the id in the button or form of your shortcode, you can also use the shortcode attributes to generate a button for a specific post (See example) Your shortcode code should be like … Read more