Post content not showing some content

If you do $content = “something”; you are replacing the $content variable’s value. If you want to append something to the current content, you’d need to do something like: $content=”initial content”; $content .= ‘more content (notice the dot)’; In this case, if you want to append the image to some existing content you’d need to … Read more

How to wrap a text with shortcode into php file?

You can use the load_value ACF filter: function wpse0605_acf_load_field( $field ) { $field = ‘[box]’ . $field . ‘[/box]’; return $field; } // acf/load_field/name={$field_name} – filter for a specific field based on its name add_filter(‘acf/load_value/name=diorganwths_diagwnismou’, ‘wpse0605_acf_load_field’); add_filter(‘acf/load_value/name=apaitei_logariasmo_facebook’, ‘wpse0605_acf_load_field’); The code can go into the theme’s functions.php, or inside a plugin constructor.

How to change links in the 3 main categories, on widget category, to a javascript function call

The Answer is: $(document).ready(function() { $(“#f-submenu”).hide(); $(“#m-submenu”).hide(); $(“#i-submenu”).hide(); $(“.widget ul li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li ul li>a )”).attr(“href”, “javascript:hideMenu();showSubMenu(‘m-submenu’)”); $(“.widget ul li+li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li ul li>a )”).attr(“href”, “javascript:hideMenu();showSubMenu(‘f-submenu’);”); $(“.widget ul li+li+li > a:not(ul li ul li>a, ul li+li ul li>a,ul li+li+li … Read more

How to Publish WP original Source metabox value on front-end webpage

get_post_meta is returning an array. Apparently, the plugin is saving _original_source as an array. I don’t know what that array looks like but instead of echo do print_r($original_source); and you get something that looks like: Array ( [a] => apple [b] => banana ) You can then do something like echo $original_source[‘a’] to print “apple”.

Snapshot Theme from WooThemes — empty ‘alt’ attribute

Since the original theme demo image doesn’t have any value in alt, I’m assuming there is a bug in the theme you might need to open a ticket for: http://demo.woothemes.com/snapshot/ I don’t recommend altering original theme template functions but if you are very far into the project and rather not switch out to another theme, … Read more