How to loop through a custom post type using a shortcode and output each element in the loop using shortcodes

Probably you need to create a shortcode with parameters. You should have different parameters for font size, color, bold, underline or anything else. The user should insert a value for each of these parameters in the shortcode. You can find what you need here https://developer.wordpress.org/plugins/shortcodes/shortcodes-with-parameters/ It is a little tricky though because you must check … Read more

504/502 errors plauging our site

If you think a plugin is causing the problem, disable all plugins by renaming the wp-content/plugins folder. Then put the plugins (in the subfolders of wp-content/plugins) back into a new wp-content/plugins folder. Do a couple/three at a time to see if you can find a bad plugin. You might also reload WP 4.7.2 via the … Read more

Woocommerce Force the category choice before creating new product? [duplicate]

You can resolve this issue by simply specifying the taxonomy you want to display. $dropdown = wp_dropdown_categories( array( ‘name’ => ‘category_id[]’, ‘hide_empty’ => false, ‘echo’ => false, // Set taxonomy for product categories. ‘taxonomy’ => ‘product_cat’, ) ); Before posting here, you should at least do some research on how this code snippet worked for … Read more

How to code bulk order form in wordpress

Yes definitely. You can create a form with data grid with option to add rows using javascript in realtime. Once the form is submitted you can import each row into WP Post table with post type ‘products’. Let me know if you need further help.

google map Info window [closed]

Divi don’t have a option to pop up marker on load, but you can do it this way: Open file divi\includes\builder\scripts\frontend-builder-scripts.js find this: google.maps.event.addListener(marker, ‘click’, function() { if( infowindow_active ) { infowindow_active.close(); } infowindow_active = infowindow; infowindow.open( $this_map_container.data(‘map’), marker ); }); } }); } and replace with this: google.maps.event.addListener(marker, ‘click’, function() { if( infowindow_active ) … Read more