JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly

Save your JavaScript code out to a separate file within your plugin directory. Then use this code to load the file using the wp_enqueue_script() function. function smooth_scrolling_links() { if ( !is_admin() ) { // Don’t load if in the admin screen wp_enqueue_script(‘Smooth-Scolling-Links’, plugin_dir_url(__FILE__) .’-YOURFILENAME-.js’); } } Obviously replace the -YOURFILENAME- with the file name that … Read more

Insert a Featured Video

No, it is not possible as-written in core. the_post_thumbnail() uses the ID of the attachment post-type that has been selected as the featured image for the post, then outputs the image associated with that attachment post-type. You would have to filter the_post_thumbnail() in some manner, but your question specified “without a Plugin”.

Adding Widgets to Masonry Layouts Correctly – jQuery &&|| PHP

Figured it out! Here’s the get_posts method to add a widget (or any content into a masonry layout at the “$counts” number you define) <div class=”arrange”> <?php $args = array( ‘posts_per_page’ => 10000, ‘offset’ => 5, ‘orderby’ => ‘post_date’, ‘order’ => ‘DESC’, ‘exclude’ => ‘none’, // ‘post_type’ => array(‘post’, ‘page’, ‘video_type’, ‘review_type’ ), ‘post_status’ => … Read more