shortcode

WordPress Shortcodes for SVG

I’m tired of these icons, if I continue I will break my site. http://slembas.esy.es – look at the red round buttons in the footer. I’m trying to insert SVG icons. They should have customisable “fill”. But I don’t want to copy and paste the same code everywhere, because if I change something in icon, I must rewrite every SVG in…
Read more

Shortcode output adding <br /> after new line

I’m trying to create a shortcode to add a CSS style attribute to a page. I added the following code to my theme’s functions.php. function add_style( $atts, $content = null ) { return ‘<style>’ . $content . ‘</style>’; } add_shortcode( ‘style’, ‘add_style’ ); In the editor of the page I used it as: [style] .image-main{ border:5px solid lightblue; } [/style]…
Read more

How to add dynamic price to cart with user selected fields in wordpress?

My form is created using WP Ultra Simple Shopping Cart and contact form 7 so far. http://goo.gl/t9l698 and I want to add all the selected fields to cart including correct price,name and others. My Form code: just for code preview: https://goo.gl/RAaEy8 Price Calculation as bellow, 5cm High $7 ( first 5 charactors ) then $1 per extra Charactor 7cm High…
Read more

Create a WordPress Shortcode with functions in functions.php

The shortcode I’m trying to create should return the 1 Hungarian word described below, this should change month to month. The code has been placed into functions.php and returns nothing when the shortcode is used in a page or post. Any help would be much appreciated. It does work when used as simple php and html by using echo honapnev($honap);….
Read more

WordPress Widgets using PHP or Shortcodes

I created a header area thats basically 6 widgets, 3 on 2 rows however i would like to place into one of the widgets some php or a shortcode, however the widget will only read html as far as i know. Is there a way perhaps in the functions.php to allow shortcodes or php to be read and executed as…
Read more

How to display all image in a folder with a shortcode for a wordpress post?

How do you insert an image from the server folder to the wordpress post with a shortcode, (i don’t wanna insert image manually) ? I’ve search from google, and see the plugin that approached my desire: wordpress.org/plugins/folder-gallery/ an example of using this plugin’s shortcode is: [foldergallery folder = “wp-content/uploads/cars”] (the plugin search for folder cars, and show the image content)…
Read more

how to make a taxonomy using shortcode

i want to make a taxonomy using shortcode i dont want to used any plugin i use this code in my plugin can someone help me // create a new taxonomy register_taxonomy( ‘Category’, ‘projects’, array( ‘labels’ => array( //’supports’ => array( ‘title’, ‘editor’, ‘comments’, ‘excerpt’, ‘custom-fields’, ‘thumbnail’ ), ‘name’ => __( ‘Skills’ ), ‘singular_name’ => __( ‘skills’ ), ‘edit_item’ =>…
Read more

How do I assign images to gallery id in WordPress with shortcodes in Page Templates

My friend has asked me to help them move images around on their wordpress site. They have an image slideshow that runs along the bottom of the page and the image gallery that shows, depends on the page template used. One template has the following code: <?php $tagu = get_post_meta($post->ID,’bototm_gallery’); ?> <div class=”flt box_bottom”> <ul style=”margin-left:10px !important; width:100% !important;” class=”sub_photo…
Read more