Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

Shortcode

Why are you using add_action for shortcode?

by IT Nursery

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

Tags actions, Shortcode

Add Shortcode tag in Widget/Sidebar

by IT Nursery

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

Tags plugins, Shortcode, widgets

Function shortcode – Set Parameter

by IT Nursery

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

Tags functions, Shortcode

Problem with height in video shortcode

by IT Nursery

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

Tags Shortcode

How to activate a plugin on the activation of a theme?

by IT Nursery

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

Tags plugins, Shortcode, themes

What is this format called (nested shortcodes)?

by IT Nursery

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

Tags Shortcode, wp-editor

Echo HTML in custom shortcode

by IT Nursery

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

Tags Shortcode

Basic do shortcodes question

by IT Nursery

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

Tags advanced-custom-fields, Shortcode

Shortcode in my childtheme is not working

by IT Nursery

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

Tags Shortcode

Capitalize Shortcode Value on Output

by IT Nursery

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

Tags php, Shortcode
Older posts
Page1 Page2 … Page124 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery