7-Views - Page 4 of 8 - Developers Blog
Fix WordPress HTTPS issues with EC2 when behind an Amazon Load Balancer?
When running Wordpress (or other PHP scripts) behind Amazon’s EC2 Load Balancer, the scripts do not realize they are being run on the https:// protocol and results in issues such as endless redirect loops, and HTTPS warnings (“Some content on this page is being requested in a non-secure way…”).
Enabling Support for Featured Image
Themes must declare support for the Featured Image function before the Featured Image interface will appear on the Edit screen.
Widgetizing theme in wordpress
Widgetizing is creating widget area in your theme. For this you need to add below code inside your functions.php file function mytheme_widgets_init() { register_sidebar( array( ‘name’ => ‘Sidebar Right’, ‘id’ => ‘sidebar_right’, ‘before_widget’ => ‘<div>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h2>’, ‘after_title’ => ‘</h2>’, ) ); } add_action( ‘widgets_init’, ‘mytheme_widgets_init’ ); Once added look into […]
How to Limit number of tags in cloud widget for WordPress
If your website has a lot of tags, and these tags are looking messy list inside the widget. So Instead of showing all tags, you can show a decent number of tags.
Create Shortcode for [NEXT] and [PREVIOUS] to be placed into specific posts for post navigation
Add this code to your theme functions.php file add_shortcode( ‘prev’, ‘prev_shortcode’ ); add_shortcode( ‘next’, ‘next_shortcode’ ); function next_shortcode($atts) { global $post; ob_start(); next_post_link( ‘<div class=”nav-next”>%link</div>’, ‘Next post link’ ); $result = ob_get_contents(); ob_end_clean(); return $result; } function prev_shortcode($atts) { global $post; ob_start(); previous_post_link( ‘<div class=”nav-previous”>%link</div>’, ‘Previous post link’ ); $result = ob_get_contents(); ob_end_clean(); return $result; […]