Its not working as desired. It is not calculating the character length of the message for showing the conditional text message.
In the postbit template i am using the following statement
<if condition="$post['text_length'] <= 500">
OUTPUT ONE
<else />
OUTPUT TWO
</if>
I have tried changing <= 500 characters to 1 and 5 or even 500000 but it produces only one output ie. OUTPUT ONE, which is not the desired result. Further guidance required, please.
Adding following code in the plugin produces 000 on the screen.
--> echo strlen($text_length);
|