pub-6887543428250003

TEN THINGS TRENDING


Jetpack

1. Indispensable Jetpack features for theme developers — Jetpack for WordPress

"Jetpack offers a number of great features for theme developers that help you cut down both development time as well as load times. Most of these features work right out of the box, but you can also get under the hood to apply tweaks and customisations that really take your theme to the next level.

This article introduces you to:

  1. Speeding up your theme with Photon
  2. Showcasing posts with Featured Content
  3. Automatically loading posts with Infinite Scroll
  4. Instantly applying a Mobile Theme
  5. Customising CSS
  6. Providing Sharing functionality
  7. Integrating Social Links
  8. Showing similar content with Related Posts
  9. Additional resources"

This is worth a read. Jetpack has probably been underused, mainly because it tries to do so much in one plugin.


WordPress Development

2. theme development – Problem with members area using current_user_can and a custom capability – WordPress Development Stack Exchange

"

0
down vote
favorite
I am currently writing a custom theme for my rugby team. As part of the theme, there is a ‘player’s area’.

The code to setup the restriction on certain pages works like this:

functions.php

$guest_player_perms = array(

… a lot more permissions …

‘view_players_area’ => true
);

add_role(
‘guest_player’,
‘Guest Player’,
$guest_player_perms
);
top of archive-player-page.php (and a bunch of other templates)

<?php if ( ! current_user_can (‘view_players_area’) )
{ include_once ( ‘noaccess-player.php’ ); exit; } ?>
Now my problem is that every once in a while, the above code snippet fails to work. The if statement executes regardless of the fact that I KNOW I am logged in and the administrator user also has that permission. I get irate and start changing stuff, then it works again.

Anybody have any clue what is going on? It is driving me crazy…


Wp beginner

3. WordPress vs. Blogger – Which one is Better? (Pros and Cons)

“We are often asked by new users why they should use WordPress instead of a free blogging service like WordPress.com or Blogger? WPBeginner is the largest resource site for WordPress beginners, so it is obvious that we favor WordPress over other blogging platforms. In this article, we will compare WordPress vs Blogger to help you decide which one is better for your needs. We will cover the pros and cons of each, so you can make the best decision when it comes WordPress vs. Blogger as a platform for your site.”

A good review of the basic reason of why WordPress is as popular as it is.


Net Tuts

4. A BDD Workflow With Behat and Phpspec – Tuts+ Code Tutorial

“In this tutorial, we will have a look at two different BDD tools, Behat and phpspec, and see how they can support you in your development process. Learning BDD can be confusing. New methodology, new tools and many questions, such as ‘what to test?’ and ‘which tools to use?’. I hope that this rather simple example will give you ideas to how you can incorporate BDD into your own workflow.”

– BDD = behaviour-driven development. Jargon, anyone?


5. Refactoring Legacy Code: Part 7 – Identifying the Presentation Layer – Tuts+ Code Tutorial

"Old code. Ugly code. Complicated code. Spaghetti code. Gibberish nonsense. In two words, Legacy Code. This is a series that will help you work and deal with it.

In this seventh chapter of our refactoring tutorials, we will do a different type of refactoring. We observed in the past lessons that there is presentation related code scattered all over our legacy code. We will try to identify all the presentation related code that we can and we will then take the necessary steps to separate it from business logic."

You could argue that programmers, like lawyers like arcane (gibberish?) language. Ruby was a good example of getting away from that.


6. Deb.js: the Tiniest Debugger in the World – Tuts+ Code Tutorial

“We, as developers, write code. Now we’re not just writing, we’re also checking if the written code works. We spend a lot of time and put in much effort, ensuring that our programs do what they are supposed to do. This debugging process is often times painful. Especially if we are not using the proper instruments. To help with this issue, today’s article introduces Deb.js, a small JavaScript library that helps you to debug from within the browser.”

I get the impression coders are supposed to spend most of their waking hours debugging (or testing) what they do. Why?


Default Image Settings

7. WordPress › Default Image Settings « WordPress Plugins

"Take control over your images inserted into posts! Choose to what page images inserted into posts link by default. Change the default size of inserted images. Default Image Settings adds options in the Media section of your settings for choosing the default settings for inserted images.

Providing a simple UI, this plugin allows you to choose the default selected size, align and Link To of images when inserting media into posts. The settings for changing the default settings are added to the Media menu under Settings in your Admin Panel."

WordPress 3.9 had some collateral damage to the images section. This plugin helps to get you more control over the default settings.


Pretty Link Lite

8. WordPress › Pretty Link Lite « WordPress Plugins

“Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!”

You need this plugin for you WordPress site tool kit.


9. WordPress › Author or User Image « WordPress Plugins

“This plugin is for Author Image. You and your users will be able to set image. The image will be appears in comment and about author section.”

Get your authors into the picture.


F5 Themes

10. WordPress › Search for foundation 5 « Free WordPress Themes

“Search for ‘foundation 5’”

Click on the link above to see Foundation Version 5 Themes in the Repository

Here are the top 8:

  1. Clean Yeti Basic
  2. _second-foundation
  3. HDboilerplate
  4. MaxFlat Core
  5. Spine
  6. SmartAdapt
  7. Tiger
  8. Xin Magazine

My plan for tomorrow is to put these up on my local vagrant site and give them a whirl.