Plugin and javascript placement

You can take advantage of html5 data-* attributes. In your shortcode function, output a class name and the data attributes you’ll need: function my_plugin_shortcode( $shortcode_settings ) { $elem_id = ‘elem-id’; $settings_id = ‘my-plugin-settings-id’; $output=”<div class=”my-plugin-class” id=”#”.$elem_id.'” data-settings-id=”‘.$settings_id.'”></div>’; return $output; } Then create a script named init.js and use wp_enqueue_script. Inside it put: jQuery(document).ready(function($){ $(‘.my-plugin-class’).each(function(){ // … Read more

Moving sidebar links to below the header menu

I assume that this plugin adds a widget that you put in sidebar so edit your page.php and add a sidebar on the top where you can add this widget with those links. register_sidebar(array( ‘name’ => __( ‘Phone Extra Info’ ), ‘id’ => ‘phone-info-sidebar’, ‘description’ => __( ‘Widgets in this area will be shown on … Read more

How to display elements of different post types?

I am not sure I understand your conditions but I think you want something like this: $arg = array ( ‘post_type’ => array(‘post’,’placas’), ‘orderby’ => ‘rand’, ‘tax_query’ => array( ‘relation’ => ‘OR’, array( ‘taxonomy’ => ‘firmas’, ‘field’ => ‘slug’, ‘terms’ => array( ‘LG’ ), ‘operator’ => ‘NOT IN’, ), array( ‘taxonomy’ => ‘category’, ‘field’ => … Read more