filter custom field with checkboxes and show it with one shortcode

add_shortcode( “Querbett”, “bettenaert”); add_shortcode( “Alkovenbett”, “bettenaert”); add_shortcode( “Queensbett”, “bettenaert”); add_shortcode( “Hubbett”, “bettenaert”); function bettenaert ( $atts, $content = null, $tag ) { modell_nach_bettenart_2( $tag ); } Now use shortcode [Querbett], [Alkovenbett], [Queensbett] or[Hubbett] as required. I hope this may help.

How to create a specific role to manage users

The following capabilities are needed to fully manage users: create_users edit_users promote_users delete_users remove_users list_users Remove role, you’ve created with Members plugin. Add the following code to functions.php of your active theme: add_role( ‘users_manager’, __( ‘Users Manager’ ), array( ‘read’ => true, ‘list_users’ => true, ‘promote_users’ => true, ‘remove_users’ => true, ‘edit_users’ => true, ‘create_users’ … Read more

Moving wordpress to root folder = internal server error

You should look at the Codex (a great place to find answers) for information about moving a WordPress site. See https://codex.wordpress.org/Moving_WordPress . Follow those steps. You’ll find (among your tasks) that you need to change the two URL entries in the wp-options table (which you already discovered), and then do a search/replace to change the … Read more

How to solve/debug get_terms suddenly showing no results?

Prior to 4.5.0, the first parameter of get_terms() was a taxonomy or list of taxonomies: Since 4.5.0, taxonomies should be passed via the taxonomy argument in the $args array: So, the lines /** * Get the family */ $args = array( ‘parent’ => $topmost->term_id, ); $family = get_terms($taxonomy_name, $args); should be /** * Get the … Read more

Next/previous post link to posts only within one or more specific categories

I solved it by abandoning the code and registering a new taxonomy. I then used this code in single.php: <?php if (has_term(‘[TERM-NAME]’, ‘[TAXONOMY-NAME]’)) : ?> <div class = “next-post”><?php next_post_link(‘%link &raquo;’, ‘%title’, true, ”, ‘[TAXONOMY-NAME]’) ?></div> <div class = “prev-post”><?php previous_post_link(‘&laquo; %link’, ‘%title’, true, ”, ‘[TAXONOMY-NAME’) ?></div> <?php endif; ?> Doing it like this allows … Read more