Displaying shortcode output through Options Framework

You should check out the WordPress function do_shortcode(). You can use it to generate the shortcodes, in a string variable, like this : <?php echo do_shortcode( $content ) ?> So in your case, please try: <?php if ( of_get_option(‘footer_contact_form’) ) { echo do_shortcode( of_get_option(‘footer_contact_form’) ); } ?>

Allowed memory size exhausted problem

The problem is that you don’t have enough memory allocated for your php script in your php.ini file. there are two ways to solve it increase the memory allocation which might require you to increase the actual physical memory you use give up on some features of your site. There is no one root cause … Read more

Change admin defaults for reading settings

You can use the wpmu_new_blog action to automatically set the default to 6 for new installs: function wpse_139900_default_posts_per_page( $blog_id ) { update_blog_option( $blog_id, ‘posts_per_page’, 6 ); } add_action( ‘wpmu_new_blog’, ‘wpse_139900_default_posts_per_page’ ); If you don’t want your users to be able to change this setting, you can just override it instead: function wpse_139900_posts_per_page() { return 6; … Read more

get_option and list of options

Options are for general settings not specific to a post. To get the name of the author of a post, you will need to first get the ID of the author from the $post object and then use that to create a $user object from which the name can be retrieved. Example code: global $post; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)