Pre-populate Post Type Content

With custom post types you can separate the content into different section, for example you can post types, pages, portfolio pages and products. If you find that you enter the same content for different post types each time then you can use the WordPress filter default_content to set a template of default content you can use as the default content for your post types. Often people will ask for comments

Read more...

Add Post Types To RSS Feed

By default WordPress comes with an in-built RSS feed allowing your visitors to subscribe to your RSS feeds to be alerted to your new articles. This will normally consist of just the normal blog posts, but as WordPress is a CMS you could have other content types that would suit being in your RSS feed. WordPress allows you to create different post types, out of the box it comes with

Read more...

Animated Scroll By Speed Not Duration

Animated scrolling is a web trend that came from single page websites, when a visitor clicked on a link the site doesn't navigate to another page but a section within the current page. You can do this by using internal anchor tags which will navigate to an ID on the page. Without animated scrolling the page will jump to this section, which doesn't look great so the animated scroll become

Read more...

Find Actions And Filters Available In WordPress

When it comes to WordPress development you can pretty much do anything you want, but you will only realise this when you understand how WordPress works and how it's all put together. The two main areas of WordPress development to understand is the difference between actions and filters. Actions allow you to assign functions to run a certain point in the code, when looking into the WordPress core code you

Read more...

Free Files For May 2014

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free for May 2014. jQuery Multiple Tag Select 15 purchases at the price of $5. 1 Required Param 10 Available Optional

Read more...

Social Media Colours

Whenever creating a new site I always find myself going to the major social networking sites to grab their colours to use in icons or buttons. Instead of having to go to all these individual sites I wanted one place to go and get these colours when I needed them. So here's a list of some of the major social media network colours. Facebook Hex: #3b5998 RGB: 59, 89, 152

Read more...

Get A List Of All Theme Page Templates

WordPress allows you to create custom page templates to use through out your site, using these page templates you can completely change the look and functionality of a certain page. Create Page Template To create a custom page template all you have to do is add a new blank php file to your theme directory and save this as custom_page_template.php. Within this new file all you have to do is

Read more...

Force Sub Categories To Use Parent Category Templates

When doing WordPress theme development the first thing you will learn about is the template hierarchy, this is the order of templates WordPress will use to display the content. WordPress actually only needs one template file to work correctly, the index.php file. Depending on what content you are viewing you can create a different page template to show this in a different way. For example if you are looking at

Read more...

Get Image Src With PHP

There are some occasions where you need to get the attribute value in PHP from a HTML element, this can be for migration reasons or perhaps you are writing a script to scrap a website to store the values found. I was writing a script that needed to scrape a web page and pick up all the URLs for the images on the page and store the src values. You

Read more...

Remove Query String From Stylesheets In WordPress

A website owner should always be trying to improve the speed of their website as much as possible. In WordPress there are many things you can do to help improve the performance of your website. Tips to improve the performance of your WordPress website When you run your website through speed tests such as Google Page Speed test one of the things they will flag up is the loading static

Read more...

1 2 3 4 5 6 7 8 9 10 11 12 13 67