tag is being auto inserted

It is a problem of wordpress editor which put some raw elements when it find space between code.. if you are adding external html code do one thing before adding it, make it minify then add it use this took or anyone else for minification https://www.willpeavy.com/minifier/ it will resolve this problem.

Getting custom posts by post id from cutomizer text input

The post__in parameter needs an array, see the WP_Query docs. With your customizer field you are not saving an array, you are saving a comma separated string. So try something like this: $my_field = get_theme_mod(‘fp_post’); // create an array from comma separated values $the_post_id_array = explode(‘,’, $my_field); $query = new WP_Query( array( ‘post_type’ => ‘post’, … Read more

How to add styles set by user in the customizer

I haven’t clarified what is the best method to apply styles from the customizer. However, this is the function i am using right now (Not using the previous one anymore, therefore, you can remove the wp_add_inline_style part): // I like this way so much more that i’m going to cry. // Thanks to: // https://code.tutsplus.com/tutorials/settings-and-controls-for-a-color-scheme-in-the-theme-customizer–cms-21350 … Read more

How developed with version control word press site on shared host? [closed]

You should familiarize yourself with a Version Control System. Most people are using Git these days, however, there are other systems such as Subversion CVS Mercurial And plenty of others. The way I typically see WordPress projects in Version Control is the following: Everything in your /wp-content/ should be in your repository Things like wp-config.php … Read more

Adding custom class to get_avatar() image doesn&https://wordpress.stackexchange.com/https://wordpress.stackexchange.com/#39;t work

The following worked for me: <?php echo get_avatar( $comment, 60, ”, ”, $args = array( ‘scheme’ => ‘https’, ‘class’ => ‘myclass’ ) ); ?> Your use of $args[‘avatar_size’] should be an int and you may have confused the use of this parameter (unless you have a variable $args, and it is an array).