Wrapping images in tags based on size

You can wrap specific sizes in arbitrary html when they’re inserted into post content via the image_send_to_editor filter. Here we check if $size is thumbnail and wrap it in a div, otherwise we just return the unaltered $html: function wpd_wrap_thumbnails( $html, $id, $caption, $title, $align, $url, $size, $alt ){ if( ‘thumbnail’ == $size ){ return … Read more

Second comments section for one post/page

When you add/display comments you could use a different comment_type $data = array( ‘comment_post_ID’ => 1, ‘comment_content’ => ‘content here’, ‘comment_type’ => ‘comment_type_a’, ); wp_insert_comment($data); This means you can query comments by comment_type depending on where you want to show them.

Add external css to Contact Page

I do feel that you are trying to over complicate things here. What you want to achieve would be easier in a child theme. It is something that I would consider as it is really something simple that you want to achieve. All you simply will need to do, copy the contact form template to … Read more