Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?

I realize you’ve already answered your issue. However, I think there is some additional explanation possible to give more clarity to the issue and the solution. The issue is your lqdnotes_add_div() function. This is hooked to a filter – the_content. In WordPress, any time you use a filter, your filter function must return a value … Read more

Publish an XML feed from a CPT with ACF fields?

Here’s a fairly complete example of one way to do this. Let’s register a Job post type that will be used with our feed. /** * Register Job post type * https://developer.wordpress.org/reference/functions/register_post_type/ */ function wpse_register_job_post() { $book_args = [ ‘label’ => __( ‘Jobs’, ‘textdomain’ ), ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ … Read more