Tag: WordPress

PHP Tricks

  1. To see the var_dump output with decoration see below –
echo '<pre>', var_dump( $style_post ), '</pre>';

Conditional Script Loading for Shotcode

In the functions.php file or in your plugin file write the code below –

How to Set a default Title for the custom post?

Now use the function

How to a Add Custom Meta Box for Multiple Post Type

See: Stackexchange , Codex

How to show image from CodeStar Metabox

The non-repeatable image field creation:

02. Calling the image on front-end: