How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin

Within the javascript file the developer calls a method when the page loads. jQuery(window).load(po_selectiveLoad); This methods calls another method. function po_selectiveLoad() { po_load_popover(); } If you replace it with this function po_selectiveLoad() { var urlString = new String(window.location.href); if (!urlString.match(/\/cart\//)) { po_load_popover(); } } Of course this is not good because you will need to … Read more

Create custom markup to use in posts?

You are probably looking for The Shortcode API that allows to create shortcodes like [my_shortcode] and [my_shortcode]some text[/my_shortcode] to be used in content and other shortcode-enabled areas. More advanced technique are way more involved and might require storing editable and rendered representation of content separately or do apply custom rendering filter every time content is … Read more

Best Way to Add UnEditable HTML to Posts

Is there a way to make it so that the user cannot delete certain things inside posts content? You need… A shortcode that will generate the content. This will let your users provide input but the markup can be rigidly controlled. Or a custom meta field. The markup around this can also be rigidly controlled, … Read more

Submitting form in wordpress plugin

Reviewing wp_dropdown_users() there is apparently a ‘selected’ parameter. So in theory, you could probably pass the posted value in here. // set to the posted value, but you might be able to do this differently, depending on how you are storing the data $selected = isset($_POST[‘author’]) ? $_POST[‘author’] : false; $args = array( ‘name’ => … Read more

Why isn’t WordPress respecting my HTML?

Figured it out. You just need to add the following to your functions.php: remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); http://codex.wordpress.org/Function_Reference/wpautop#Disabling_the_filter

MetaBox with Editor instead of textarea – html not saved [closed]

I have solved this problem after many researches, just comment two lines in meta_box.php file at end. $sanitizer = isset( $field[‘sanitizer’] ) ? $field[‘sanitizer’] : ‘sanitize_text_field’; to //$sanitizer = isset( $field[‘sanitizer’] ) ? $field[‘sanitizer’] : ‘sanitize_text_field’; at line 692 and $new = meta_box_sanitize( $new, $sanitizer ); to //$new = meta_box_sanitize( $new, $sanitizer ); at line … Read more