Creating an API URL

You may want a url to be used for say remote devices to connect to your site and pass information using say URL parameters and a response string. You can create a special url and trap it using the code below. However for it to work in all instances you need to have a real […]

Read More

Alter Page

Use A Shortcode You can add a shortcode to the page and a function for it to add dynamic content, javascript, etc

Read More

Redirect to page

Before outputting page content Redirect based on the home URL Redirect based on the site URL If you’ve outputted some page content Using a META tag is the easiest way

Read More

Post

Individual Post File single.php   Showing the posts featured image Use this in single.php: <?php //>>>>> SPECIAL – SHOW THE FEATURED IMAGE if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail( ); /*Size is set in style.css*/ } //<<<<< ?> To set the size and use […]

Read More

Homepage

To create a customised homepage copy your index.php file and call it home.php.  WordPress will use home.php for the home page of your site if it finds one, otherwise it will use index.php (there is also a more complicated way by changing settings). Showing posts from a specific category on the homepage Add this before […]

Read More