Tag: code snippet
WordPress: Shortcode in Custom Field
Normally wordpress does not run shortcode that you put into a custom field. By default, Custom Fields display whatever value you enter, as plain-text, so if you try entering a shortcode, (in the format [shortcode] VALUE [/shortcode]) you’ll end up displaying the entire text, including the tags. Add the following in your template file, it…
WordPress: Disable All Shortcodes from the_content
The following code snippet will remove ALL shortcodes from the_content Add the following code snippet to the functions.php of your theme You can disable shortcodes from particular page, e.g Home Page
How to center marker with Pronamic Google Maps plugin for WordPress
We have World map viewed as default map when Google Maps loaded in the website, now we want to make marker centered on the map. Put the following JavaScript code snippet below Google Maps mashup code Change latitude and logitude to your location
How to show World Map as default view using Pronamic Google Maps plugin for WordPress
Pronamic Google Maps plugin is the best WordPress plugin for Google Maps “With this plugin a user can easily add location (latitude, longitude) meta data to a page, post or a custom post type. This plugin adds a meta box with an Google Map to the post editor. Users can easily drag and drop a…
How to fix “people who bought this item also bought” no image error in wp e-commerce
Cross Sales is a feature under WP E-Commerce . You can find this under Store Settings > Marketing. An user will see what other people bought with regard to the current product being displayed. Upon activating it though, an error, “NO IMAGE” default thumbnail under that category which does not display the thumbnails properly. To fix…