Tag Info

New answers tagged


After you finish with following article, you will be able to add and get options from your admin with only a few lines of code. this will be creating options for a WordPress theme in this article . Titan Framework(WordPress option framework) Add new theme option function.php if (!class_exists('TitanFramework')) { require_once( ...


I think similar question is answered here: Send user activation email when programmatically creating user Please have a look. Let me know if that solves the issue.


try using an empty condition <?php $bgimage= get_post_meta( $post->ID, 'settings_image', true ); if (!empty($bgimage)) { $imgURL = wp_get_attachment_url( $bgimage ); ?>background: url('<?php echo $img ?>')<?php } ?> That should work as it checks to see if there is anything stored in the meta and will not print the background: ...

Top 50 recent answers are included