Customizing Home Page with Pagelines Platform

That is simple is Word Press, regardless of the theme you are using. Dashboard -> Settings -> Reading -> Blog pages show at most This would be better than editing your (child) theme. I am sorry that I went on too much in code editing and forgot the most basic and easy things. But if … Read more

Set header for default posts page?

You could use a template. You just have to copy the file header.php and call the new file with the slug of the page testimonials. It would require 2 new files : header-testimonials.php and front-page.php. then you can call your custom header with get_header(‘testimonials’); See the template hierarchy. Just be sure Testimonials is your front … Read more

Trying to display stick or featured post on homepage

Try this. It should work <?php $args = array( ‘post__in’ => get_option(‘sticky_posts’), ‘showposts’ => 1, ‘orderby’ => date, ‘order’ => ‘desc’ ); $sticky = new WP_Query( $args ); if ( $sticky->have_posts() ): while ( $sticky->have_posts() ): $sticky->the_post(); echo the_title(); endwhile; endif; wp_reset_query(); ?>

Cannot retrieve home url with custom queries

home_url() uses get_home_url() which in turn uses get_option( ‘home’ ) to retrieve the home url. The code in get_option() includes this: // If home is not set use siteurl. if ( ‘home’ == $option && ” == $value ) return get_option( ‘siteurl’ ); I didn’t unwind all the previous code in the function, but it … Read more

Navigational error

Option 1: Edit the Contructor theme The Constuctor theme checks the theme options and then includes the home link based on the option value. The code that adds the Home link is located in /wp-content/themes/Constructor/libs/Constructor/Main.php. // show link to homepage if ($this->_options[‘menu’][‘home’]) { echo ‘<li id=”home”><a href=”‘.home_url().”https://wordpress.stackexchange.com/” title=”‘.get_bloginfo(‘name’).'”>’.__(‘Home’, ‘constructor’).'</a></li>’; } Link Text To change the … Read more

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