Trying to use a variable to set image width

There are invalid PHP codes in your sample. Try to use valid PHP code like below. $imageWidth = get_option(‘devotional_imageWidth’,’100%’); $content = “<h2>Devotionally Images</h2>”; $content .= ‘<div style=”width:’ . $imageWidth. ‘;”>’; $content .= ‘<img src=”‘ .$show_file. ‘” alt=”Image Title Here”>’; $content .= “devotional by Devotional.ly”; $content .= ‘</div>’; return $content;

How to revive (or take over) a plugin?

See the two answers for “How to Fork a Plugin” at How to fork a plugin? . I like both of the answers. Contacting the author for a response. If no response, copy then modify/improve/rename, crediting the original author in the code and readme. You should give it a new name.

Register custom_post_type from static function

Since the activation hook only will be called when activating the plugin, you will instead need to call register_post_type() on some hook which is triggered every time you access the administration pages. You could use the init hook for this: add_action(‘init’, array($this, ‘register_custom_type’)); You also need to make the register_custom_type() method public for this to … Read more

call funcution when clicking submit

<?php if(array_key_exists(“button1′, $_POST)) { button1(); } function button1() { echo “This is Button1 that is selected”; } ?> <form method=”post”> <input type=”submit” name=”button1″ class=”button” value=”Button1″ /> </form> </head> </html> you call button click function this type you need more refrance follow this link