February 25, 2015 – 4:01 pm
I like WordPress, but sometimes it works in weird ways.
I recently needed to get information such as the title and some custom fields of the Page I was on. That’s easy, but the Page happened to be ‘News’ which was served from index.php. That apparently isn’t so easy.
To do it, I needed the Page ID. That’s something a lot of people can probably hard-code, but this is a multi-site theme, so no can do. Instead I had to use get_option( ‘page_for_posts’ );.
Here we have it:
<?php $page_id = get_option( ‘page_for_posts’ ); ?> <h1><?php echo get_the_title($page_id) ?></h1>
February 4, 2015 – 1:53 pm
WordPress Hosting Comparison is a website I launched this week. The website lists the main web hosts in the industry that supply managed hosting. The website doesn’t include providers of what I would deem to be more bare bones systems, where you would receive root access to a (virtual) box, but instead focuses on providers who offer tailored hosting solutions ready to go.
Not all of the providers offer a WordPress-specific hosting option, but many do. However, all of the web hosts and all of the web hosting packages within the comparison will fully support WordPress. Many of the providers have WordPress only packages, and some have WordPress pre-installed and optimised with their own in-house plugins tailored specifically for their own servers.
The website itself is built in Ruby on the Rails framework. I created the website as an opportunity to learn a little more about…
August 11, 2014 – 11:26 am
I see misinformation on this far too often.
The WordPress screenshot is shown at 387×290. But, the recommended size is 880×660. This information is freely available on the WordPress Codex.
Why 880×660? Because certain devices have high pixel density displays (HiDPI) which, in a nutshell, will show more pixels in the same space to provide a crisper image. By making your WordPress theme screenshot 880×660 you are allowing for these high pixel density displays.
I’ve made a lot of WordPress websites over the years, both for clients and myself. They pretty much all require work out-of-the-box to get right, exclusive of applying a theme and styling.
These tweaks include:
Installing a contact form plugin (usually Gravity Forms or Contact Form 7) Configuring Akismet Installing and configuring an analytics package (Google Analytics or similar) Social plugins (I used to do this as part of the theme though, admittedly) Replace comments with Disqus or Facebook Comments (or remove entirely) And, depending on the site, integrate automatic social posting (eg. post to my social media profile when I make a new post)
So, wouldn’t it be great if you could skip all of this and just install one plugin? Yes, it would, and that’s why JetPack exists.
JetPack is a set of solid plugins and addons…