Fullwidth slider using background image Flexslider WordPress

From WordPress 4.4 onwards, you can use the_post_thumbnail_url() inside The Loop to easily get the featured image source: <div style=”background-image: url(<?php the_post_thumbnail_url(); ?>);”> //Your html code </div> If you need compatibility with releases prior to the 4.4, wp_get_attachment_image_src() will do the work. Contrary to what its name suggests, it won’t return the image location directly, … Read more

Callback function quicktags that uses variable in start tag

Managed to find out how: function callback_wrap(e, c, ed) { var course = getSelectedText(“_lesson_course”); var module_info = jQuery(“#title”).val(); var module_nr = module_info.match( /\d+/g ); var start = ed.canvas.selectionStart; var end = ed.canvas.selectionEnd; var content = jQuery(“#content”).val(); console.log(start); console.log(end); console.log(ed); var selected = content.slice(start, end); var string = ‘<div class=”moudle-area”>’+selected+'<p>[Tweet “I just completed Module ‘+module_nr+’ of … Read more

How to Modify My Plugin’s Admin Settings so that the Plugin can be Added to a Specific Page?

You are registering user_profile_template function to run during the page_template filter hook, but your function is actually called registration_template. This is why your selected page might not be loading your custom template file. That’s one thing. Another is that with this method, the selected page will look completely different than all other page in the … Read more