Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)

I believe that your syntax is wrong in the variables you set up in your foreach loop. Because you’re referencing an object and not an array, you need to use this format: $author_ID = $value->ID and… $value->display_name We also discovered that the foreach loop isn’t necessary, so I’m removing it from the answer. The other … Read more

set_query_params using custom params defined in functions file?

it just seems to be ignoring only the custom parameters I have defined in my functions file There are two issues in your code: WP_REST_Request::set_query_params() actually accepts just one parameter, which is an array of arguments, so your code should look like so: $request->set_query_params([ // pass a single array containing one or more arguments ‘per_page’ … Read more

Can you make a custom gutenberg block that allows the gutenberg editor within it?

Shucks, no sooner than the second I desperately resort to asking here, I run into the answer. So for anyone else who just wants a straight answer and not some 45 minute video that never gets to the point… acf_register_block_type( array( ‘title’ => __( ‘Wrapper’, ‘client_textdomain’ ), ‘name’ => ‘wrapper’, ‘render_template’ => ‘partials/blocks/wrapper.php’, ‘mode’ => … Read more

Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?

By default, WordPress disallow 2 identical slugs because if you change your permalink structure for custom structure, you should be able to have in your case: https://example.com/saint-louis/ https://example.com/saint-louis/ And you can understand, it’s impossible. The only way is checking by code, you are not in “custom structure” and then save in db with the WordPress … Read more