wordpress Static Page pagination

This solution needs to be revised for that pagination functions are in functions.php. I am using Reverie master theme (which uses foundation framework), that theme uses pagination function which is in functions.php if( ! function_exists( ‘reverie_pagination’ ) ) { function reverie_pagination() { global $wp_query; $big = 999999999; // This needs to be an unlikely integer … Read more

Custom background for the index page only?

You can check in your callback function if you are an the front page. Sample code for the theme’s functions.php: add_action( ‘after_setup_theme’, ‘wpse_67480_theme_setup’ ); function wpse_67480_theme_setup() { $bg_options = array ( ‘wp-head-callback’ => ‘wpse_67480_background_frontend’, ‘default-color’ => ‘f0f0f0’, ‘default-image’ => ”, ); add_theme_support( ‘custom-background’, $bg_options ); add_theme_support( ‘custom-header’, array ( ‘width’ => 960, ‘height’ => 200, … Read more

Add Adsense code in index.php

Here is a slight variation of my other answer. First we register two new widget areas, sidebars in WordPress-speak. add_action( ‘widgets_init’, ‘wpse_84250_register_ad_widgets’ ); function wpse_84250_register_ad_widgets() { // used on the first page of main loop only register_sidebar( array ( ‘name’ => ‘Ad Widget 1’, ‘id’ => ‘ad_widget_1’, ‘before_widget’ => ‘<div class=”frontpage-ads”>’, ‘after_widget’ => ‘</div>’ ) … Read more

How to create custom home page via plugin?

An Active Plugin To make an active plugin, use the following resources: WordPress Codex: Writing a Plugin WordPress Essentials: How To Create A WordPress Plugin by Daniel Pataki From the following StackExchange thread, try to understand what are the Hooks and what are things acting behind a plugin: How to edit a wordpress plugin without … Read more

front-page.php stylesheet

How to load a custom stylesheet for your Front Page Set up front-page.php (which you’ve done already). Create a stylesheet for your front page (you can copy style.css, but more likely, you’ll just want to override a few things). Let’s call it front-page-style.css. View the HTML source of one of your pages, and find the … Read more

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