Problem with wp_editor

The wp_editor echos the editor including a textarea. So just replace the textarea with <?php wp_editor($content, $id, $args); ?> and set the arguments as you want them to be. https://codex.wordpress.org/Function_Reference/wp_editor

change output location of plugin function using a custom hook

Something like what you are doing should work but I think you have a couple of things going wrong. First, it sounds like you’ve hacked the plugin. Don’t do that, just remove the callback from the the_content hook. In your theme’s functions.php add: remove_filter(‘the_content’, ‘append_the_video’); The youtube_video() function depends on the $post variable. That means … Read more

WordPress Background Audio – Continous AutoPlay

Since I don’t have enough reputation to add a comment yet, I read on another website that someone used http://scmplayer.net/ as an alternative to frames/popups which seems to be a little script you can generate and then use on both non-WordPress and WordPress sites (since it just needs to be inserted after the <body> tag). … Read more

Links on FAQ page aren’t working

I figured it out. The FAQ plugin was intentionally “return false”-ing links on the page with a certain class, resulting in (intentional) silent failure. I removed that line of JS from the plugin and now the links work.

Ajax, jQuery and WordPress

Wrap your javascript code with document.ready, and if it works I would suggest going back to putting this in an external file jQuery(document).ready(function(){ jQuery(‘#ajax_form’).on(‘submit’, function(e) { e.preventDefault(); console.log(‘Here’); var form = jQuery(‘#ajax_form’); var data = form.serialize(); data.action = ‘add_word_to_form’ jQuery.post(‘/wp-admin/admin-ajax.php’, data, function(response) { alert(data); }); //return false; }); });

Use of apply_filter in plugin/widget class

I’m not sure if you are missing some code in the constructor where you write //code here : function __construct() { //code here } Try replacing it with: function __construct() { parent::__construct( ‘byad_countdown_widget’, // Base ID __(‘Byad Countdown’, ‘byad_countdown’), // Name array( ‘description’ => __( ‘The Byad Countdown Widget’, ‘byad_countdown’ ), ) // Args ); … Read more