How to use a frontend URL with a Plugin

Must exist a real page in WordPres? Yes, you need to create a page, but it doesn’t have to have any content. Let’s say you created a new page named ‘Confirmation message’. The URL would be http://example.com/confirmation-message. Now add the following to the functions.php of your theme: /** * Adds a confirmation message to the … Read more

Multiple pages on one with different HTML

You could attack the get_pages(); function another way to sort your code better and read it better as well, take a look at this link for more info. <?php $args = array( ‘sort_order’ => ‘ASC’, ‘sort_column’ => ‘post_title’, // sorting by alphabetical order of post title for example ‘hierarchical’ => 1, ‘exclude’ => ”, ‘include’ … Read more

Nice scroll to wordpress

wordpress runs jquery in noconflicts mode which means that you either need to write your JS code using the jQuery function call $(document).ready( function() { jQuery(“html”).niceScroll(); } ); or the following syntax which define $ $(document).ready( function($) { $(“html”).niceScroll(); } );

Correct way to make static pages editable in wordpress

This is a little bit of a “finding the right balance” kind of question. You are struggling with the balance that all custom theme developers must work with. At the one end of the spectrum your content area just spits out the_content() and all of the content formatting and control is up to the user … Read more

Blank on static home page?

From the Codex If you are using a custom homepage with custom loops and stuff or a custom front-page, you will have an empty wp_title. Here goes a neat hack to add the description/tagline at the wp_title place on homepage: add_filter( ‘wp_title’, ‘baw_hack_wp_title_for_home’ ); function baw_hack_wp_title_for_home( $title ) { if( empty( $title ) && ( … Read more