How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?

With some CSS/HTML I managed to solve my issue. But, I had to enable Gallery title right above the description setting checkbox in my screenshot. HTML <a href=”http://wordpress.stackexchange.com/bwg_gallery/<slug-url-here>/#top” name=”top”></a> <h4>Title</h4> Addtional CSS ( to hide the title since I already have a title above this one ) .bwg_gal_title_0:not(.bwg_gal_description_0){ display: none !important; }

jQuery dependent script ignores $in_footer bool and doesn’t work in header

It’s all about poor typo, I put one extra parameter ” before dependency parameter: wp_enqueue_script( $plugin_short_slug, plugins_url() . “https://wordpress.stackexchange.com/” . $plugin_slug . ‘/js/’ . $plugin_slug . ‘.js’, ”, array(‘jquery’), ”, true); should be: wp_enqueue_script( $plugin_short_slug, plugins_url() . “https://wordpress.stackexchange.com/” . $plugin_slug . ‘/js/’ . $plugin_slug . ‘.js’, array(‘jquery’), ”, true); Now my script properly loads in … Read more

Hide post by ‘post_category’

If you want to get the posts with that category $myposts = get_posts(array( ‘p’ => $pid, ‘posts_per_page’ => -1, ‘post_type’ => ‘post’, ‘category__in’ => array( 4 ), ‘post_status’ => ‘publish’, ‘author’ => $value[0], )); If you want to get the posts without that category $myposts = get_posts(array( ‘p’ => $pid, ‘posts_per_page’ => -1, ‘post_type’ => … Read more

Using the same class across multiple functions

I found a solution to this. In my other project I use this function in my settings class: public function lal_get_settings( $index = false ) { $defaults = array ( ‘lal_display_type’ => ‘icon’, ‘lal_add_fa’ => false); $settings = get_option( ‘lal_settingz’, $defaults ); if ( $index && isset( $settings[ $index ] ) ) { return $settings[ … Read more

Pre-populated WooCommerce checkout fields: dropdown fields issue

Found my own solution. The key was to use a different callback and reference woocommerces actual field name. Have simplified the code below down to the essence. function mmd_list_claimlisting($DBRecordId) { global $woocommerce; $Record = mmd_list_GetDBRecord($DBRecordId); $woocommerce->session->set(‘claim_state’, $Record[‘BusinessState’]); $woocommerce->session->set(‘claim_country’, $Record[‘BusinessCountry’]); // No matching variation found } //////////////////////////////////////////////////////////////////// // Pre-fill out the check out fields with the … Read more