Why are you using add_action for shortcode?
I would like to create shortcodes, but some tutorials write about to use add_action: add_action( ‘init’, ‘register_shortcodes’); But I read another tutorial where … Read more
I would like to create shortcodes, but some tutorials write about to use add_action: add_action( ‘init’, ‘register_shortcodes’); But I read another tutorial where … Read more
I want to add a shortcode tag in the sidebar/widget. I am able to get the required functionality if I add the code … Read more
function get_gifts_posts($params, $content){ $default_params = array( ‘post_type’ => ‘post’, ‘order’ => ‘desc’, ‘orderby’ => ‘date’, ‘posts_per_page’=> 5, ); if (isset($params[‘type’]) && !empty($params[‘type’]) && … Read more
i think there is a problem with the video shortcode. When i use the 400px height not work. The width work correctly but … Read more
I want to use the hide unwanted shortcodes plugin to hide unwanted shortcodes from my desktop theme when my website is visited by … Read more
When using plugins and commercial themes in WordPress, it’s not uncommon to meet code like this: [one_half] [service_box] <h1>Title:</h1> <ul> <li>blah…</li> <li>blah…</li> <li>blah…</li> … Read more
I wrote a shortcode that I am trying to refine. It basically just gets a list of bookmarks and prints them. But I … Read more
I used WordPress codex page to code. As you can see I have 2 PHP codes in my line. The page is able … Read more
function get_employee_func(&$totalCount) { global $wpdb,$_POST; $query=”; $sql=””; $query=”Select * from wp_users as U left join wp_company_user as CU on U.ID = CU.user_id LEFT … Read more
I wrote this shortcode to take a filename I specify and output it as an image with title and alt tags: function cwc_pkmn($atts) … Read more