Create thumbs/gallery from custom fields

I suggest going with a slider plugin like Layer Slider or this http://www.wonderplugin.com/wordpress-slider/ . You’re right that a plugin search for this kind of topic has the potential to be endless, so look for customizability and extendability in the plugin. Similarly for going the DIY route. There’s no need to reinvent the wheel. Find a … Read more

How to show/hide a meta box using categories, with a different post type

Instead of if (is_admin()) add_action(‘admin_menu’, ‘add_custom_box’); use add_action(‘add_meta_boxes’, ‘add_custom_box’); The ‘add_meta_boxes’ hook is the correct one to add meta boxes. Other than that, as you mentioned correctly change the ‘post’ to ‘$my-custom-post-type’ and register the category taxonomy for that post type: register_taxonomy_for_object_type( ‘category’, ‘$my-custom-post-type’ )

Plugin program: JQuery not working in this plugin

Firstly I’d suggest wrapping your JS like this: (function ($) { $(document).ready(function(){ $(“#Yes”).click(function(){ $(“.apptype”).show(); $(“.specify”).hide(); }); $(“#No”).click(function(){ $(“.specify”).show(); $(“.apptype”).hide(); }); }); })(jQuery); You’re also enqueuing jQuery twice, and the above the above script twice…. and with your shortcode you don’t need to declare the DOCTYPE, or wrap your from in an HTML tag. I would … Read more

Problem with jQuery in post body?

When you are using Google CDN hosted version of jQuery then you don’t need to use jQuery wrapper. It’s for jQuery packed with WordPress core because jQuery with WordPress runs in noConflict mode. So your jQuery code will be. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”></script> <script type=”text/javascript”> $(document).ready(function() { console.log(“Test”); $(“.myBox”).click(function(){ var myBoxOn = $(this).attr(“data-class”); $(“.myBoxContent”).hide(“slow”); $(“#” + myBoxOn).show(“slow”); … Read more

WordPress version for this autocomplete jQuery code

Shouldn’t you add full path of the ajax.php in your code. If your ajax.php file is in theme folder then you can use get_template_directory_uri() function to define file path. So this should be your code. $(document).ready(function () { var ac_config = { source: “<?php echo get_template_directory_uri(); ?>/ajax.php”, select: function (event, ui) { $(“#facility_name”).val(ui.item.facility_name); }, minLength: … Read more

owl carousel not working after ajax load [duplicate]

The reason you cannot use this by default is because of no conflict. From the Codex: The jQuery library included with WordPress is set to the noConflict() mode (see wp-includes/js/jquery/jquery.js). This is to prevent compatibility problems with other JavaScript libraries that WordPress can link. In the noConflict() mode, the global $ shortcut for jQuery is … Read more