2 cleanup, tags
source | link

thanks for taking a look at my questions,

So whatWhat I'm basically trying to do is check if a shortcode is returning any content, I'm using a plugin called Ninja forms and they have default content posting using their own shortcodes which look like this:

[ninja_forms_field id=84]

[ninja_forms_field id=84]

Assuming it works like a WordPress's default shortcode, how would I check if it returns any content, I've been trying to get this basic PHP code to work but it doesn't seem to ever evaluate as true:

<?php
 if(!empty([ninja_forms_field id=84])){
     echo "has content";
  } else{
     echo "not working";
     }

I'm using a WP plugin called insert PHP"Insert PHP" to run PHP in the default post form, I did several test and this pluginsplugin runs PHP wonderfully, so it's the shortcode logic that's failing me.

Here's a quick Ninja Forms Here's a quick Ninja Forms article on their Shorcodes, this might helparticle

PLEASE HELP ME! and THANK YOU so much for any insight you on their Shortcodes, this might have..help

thanks for taking a look at my questions,

So what I'm basically trying to do is check if a shortcode is returning any content, I'm using a plugin called Ninja forms and they have default content posting using their own shortcodes which look like this:

[ninja_forms_field id=84]

Assuming it works like a WordPress's default shortcode, how would I check if it returns any content, I've been trying to get this basic PHP code to work but it doesn't seem to ever evaluate as true:

<?php
 if(!empty([ninja_forms_field id=84])){
     echo "has content";
  } else{
     echo "not working";
     }

I'm using a WP plugin called insert PHP to run PHP in the default post form, I did several test and this plugins runs PHP wonderfully, so it's the shortcode logic that's failing me.

Here's a quick Ninja Forms article on their Shorcodes, this might help

PLEASE HELP ME! and THANK YOU so much for any insight you might have..

What I'm basically trying to do is check if a shortcode is returning any content, I'm using a plugin called Ninja forms and they have default content posting using their own shortcodes which look like this:

[ninja_forms_field id=84]

Assuming it works like a WordPress's default shortcode, how would I check if it returns any content, I've been trying to get this basic PHP code to work but it doesn't seem to ever evaluate as true:

<?php
if(!empty([ninja_forms_field id=84])){
    echo "has content";
} else{
    echo "not working";
}

I'm using a WP plugin called "Insert PHP" to run PHP in the default post form, I did several test and this plugin runs PHP wonderfully, so it's the shortcode logic that's failing me.

Here's a quick Ninja Forms article on their Shortcodes, this might help

1
source | link

PHP/WordPress -- How do I check if Shortcode returns content?

thanks for taking a look at my questions,

So what I'm basically trying to do is check if a shortcode is returning any content, I'm using a plugin called Ninja forms and they have default content posting using their own shortcodes which look like this:

[ninja_forms_field id=84]

Assuming it works like a WordPress's default shortcode, how would I check if it returns any content, I've been trying to get this basic PHP code to work but it doesn't seem to ever evaluate as true:

<?php
 if(!empty([ninja_forms_field id=84])){
     echo "has content";
  } else{
     echo "not working";
     }

I'm using a WP plugin called insert PHP to run PHP in the default post form, I did several test and this plugins runs PHP wonderfully, so it's the shortcode logic that's failing me.

Here's a quick Ninja Forms article on their Shorcodes, this might help

PLEASE HELP ME! and THANK YOU so much for any insight you might have..