ACF: Hide a div or template section when a custom field (in a field group) is empty

Hope this help how to figure out your request <?php $werdegang = ‘werdegang’; // werdegang parent group $station1 = ‘jahr_station_1’; // ‘ child group 1 $station2 = ‘jahr_station_2’; // ‘child group 2 $station3 = ‘jahr_station_3’; // ‘child group 3 $station1Jahr=”jahr1″; $station2Jahr=”jahr2″; $station3Jahr=”jahr3″; $station1Title=”jahr1_Title”; $station1Text=”jahr1_Text”; $station2Title=”jahr2_Title”; $station2Text=”jahr2_Text”; $station3Title=”jahr3_Title”; $station3Text=”jahr3_Text”; ?> <?php if( (!empty($station1Title) && !empty($station1Text)) && … Read more

Selling Downloadable Products [closed]

your file upload limits are controlled by your php configuration (php.ini). if you’ve tried the various fixes found when searching “php increase maximum upload filesize” or similar, then that’s a question for your host. as far as hosting files elsewhere and a commerce plugin that supports that feature, I suggest having a look at Woocommerce … Read more

Getting Post Permalink Outside of Loop Not Working

According to: http://wpseek.com/get_comment_count/ $single is the post ID. Try: public function get_comment_count($single){ if (isset($this->params[‘comments’]) && $this->params[‘comments’] == ‘yes’){ return ‘<div id=”disquscomments”><a href=”‘.get_permalink($single).’#disqus_thread”>Comments</a></div>’; } else { return null; } }

This plugin throws error on the events page only [closed]

Looks like it’s not loading jQuery at all, and actually it’s commented out. So, none of your (All In One Event Calendar’s) subsequent jQuery is firing. Take a look at WP Tuts’ article on how to enqueue scripts. This methodology prevents competing versions of jQuery and possible, in this case, missing scripts.

Woocommerce custom fields

Firstly, i would use a custom function in your child themes functions file rather than add the code directly to the template file. You can use the WooCommerce conditional tags and hooks in your code. echo get_post_meta( get_the_ID(), ‘collection_text’, true );