Save multiple checkboxes with Types

Remove apply_filters() and just pass the array values into your wp_insert_user: array( ‘first_name’ => $nombre, ‘last_name’ => $apellidos, ‘user_pass’ => $contrasena, ‘user_login’ => $username, ‘user_email’ => $email, ‘role’ => ‘subscriber’, ) WordPress already managed those apply_filters, so there’s no reason to use them in your code. Hope it helps! Me dices si te sirvió, también … Read more

Custom Post type easy way for editors

First, create your desired custom post types. Since you are not yet familiar with coding, use a plugin from the wordpress directory https://wordpress.org/plugins/custom-post-type-ui/ Now that you created your own custom post types, you need to create the templates for each custom post type. This will allow you to have different ways of presenting the articles … Read more

img src not working correctly in custom post type

Add this following function to your functions.php of your theme or child theme. function homeURLshortcode() { return home_url(); } add_shortcode(‘homeurl’, ‘homeURLshortcode’); This will create a shortcode like [homeurl] which you can use to add in any visual editor and it will render as your main domain address, like http://domain.com. So for your image url you … Read more

Custom Taxonomy Tags and Category using same slug

So I got this working by adding /tag or /category for the rewrite slug, rather then publications or publications/%publications_tag%. I initally thought both taxonomy types could live in the parent post-type and wordpress would figure the rest out. Tags: ‘rewrite’ => array( ‘slug’ => ‘publication/tag’, ‘with_front’ => false ), Looks like: domain.test/publications/tag/example-tag/ and use’s the … Read more