Support » Themes and Templates » Essential grid plugin php shortcode

  • Hi,
    in the item skin editor i added element and the source is set to html/text and i have a shortcode inserted there.

    Now this shortcode is actually my own short code which i made with this code:

    * Plugin Name: StampShortCode
    * Description: Adds My Stamp Shortcode.
    * Version: 1.0
    * Author: Ben
    * Author URI:
    function ink_wp_shortcode($atts, $content=null)
    $hazaka = get_post_meta($post->ID, 'wpcf-hazaka-pnimit', true);
    if ($hazaka == "בחזקת נקי") {
    echo '<img src=""/>';
    } elseif ($hazaka == "לעיתים נגוע") {
    echo '<img src=""/>';
    } else {
    echo '<img src=""/>';
    add_shortcode('stamp', 'ink_wp_shortcode');

    (Added as a plugin to wordpress)

    The problem is this line:
    “$hazaka = get_post_meta($post->ID, ‘wpcf-hazaka-pnimit‘, true);”
    which suppose to get a value of a meta field called “wpcf-hazaka-pnimit” and it doesnt get it’s value although the same code works perfect in the site itself and i guess the reason is because the “essential grid loop” works different then the regular wordpress loop can you help me fix it so it will get the value in the “essential grid plugin?

Viewing 1 replies (of 1 total)
  • I also have a similar question whereby shortcodes are not rendered by Essential Grid. i.g. nothing shown on the grid. FYI, I am entering the shortcode in the “Custom Excerpt” section.

Viewing 1 replies (of 1 total)
  • The topic ‘Essential grid plugin php shortcode’ is closed to new replies.