Quantcast
Channel: BIOSTALL » PHP
Browsing all 57 articles
Browse latest View live

Outputting Advanced Custom Fields ‘Repeater’ Field in a Random Order

For regular developers of WordPress, you may have heard of the Advanced Custom Fields plugin by now. If you haven’t, I recommend you go ahead and download it right away. Personally it has saved me many...

View Article


Image may be NSFW.
Clik here to view.

Override WordPress All in One SEO Pack Plugin on Certain Pages

If you use WordPress on a regular basis you’ve probably heard of the All in One SEO Pack plugin. In summary it automates a lot of the SEO across your site and allows you to customise the meta...

View Article


Image may be NSFW.
Clik here to view.

Limit Length of Column Value in Yii Bootstrap TbGridView

I’ve recently been working on a project built on the Yii framework that uses Yii-Bootstrap to make working with Yii and Bootstrap together a little easier. One of the widgets I frequently used was the...

View Article

How to Install Two Versions of XAMPP Side-by-Side

I’ve used XAMPP for as long as I can remember. I used it originally so I could learn and practice PHP without having to purchase hosting, however I use it now-a-days to develop sites locally before...

View Article

WordPress Custom Post Type Single Template Not Working

I can’t think of the last WordPress site I did that didn’t use custom post types. They’re a feature I use all the time. As a result of using these custom post types, they often require a different...

View Article


How To Use WordPress Functionality From a Bespoke PHP Script

As a WordPress developer there might come a time when you need to write a bespoke PHP script that sits outside of the WordPress file structure, yet needs to use the standard functionality available...

View Article

Why My WordPress Loop Was a Post Short

Earlier today I was working on adding a blog to an existing site. This is a pretty standard task and one I’ve done many times in the past. This time it went a bit different than normal however as I got...

View Article

Hashing ACF Password Type Fields in WordPress

The release of version 4 of the Advanced Custom Fields plugin saw the addition of a few new field types. One of these was a type of field called ‘password’. By selecting a field to be of type...

View Article


Resolving WordPress Widgets Snapping Shut

I came across a peculiar problem recently when setting up widgets for a WordPress site I was working on. In summary, I was registering sidebars and adding widgets when a scenario arose whereby I was...

View Article


Why My php.ini Changes Weren’t Taking Effect

Today I needed to change a PHP directive in my php.ini file after needing to increase the maximum POST size allowed. The directive that needed changing was ‘post_max_size‘ from 8MB to 24MB. As a bit of...

View Article

Image may be NSFW.
Clik here to view.

Performing a Radial Search with WP_Query in WordPress

If you’re building a site in WordPress that performs some kind of radial search, it can be difficult to know how to do this using the standard functionality included through use of the built-in...

View Article

Image may be NSFW.
Clik here to view.

Overwrite English Labels in Modern Tribe Events Calendar Plugin

I recently installed and setup the Event Calendar plugin from Modern Tribe on a WordPress site. It worked great out of the box and was so easy to customize through use of the templating system that it...

View Article

Image may be NSFW.
Clik here to view.

How To Allow Editors Access To a Single Plugin in WordPress

Sometimes the default permissions given to user roles in WordPress need to be tweaked to match the needs of a particular project. We come across this quite a lot whereby we need to hide or show various...

View Article


Resolving the Random Zero at the End of AJAX Requests in WordPress

If you’ve ever integrated AJAX functionality into a WordPress plugin or theme, you have probably / should have used the in-built WordPress functionality that already exists. An article in the WordPress...

View Article

Update Published Date When Going From Draft to Published in WordPress

The published date of a page or post in WordPress is set when the article is first added to a website. This is then used in various scenarios; ordering news articles in date order, displaying when a...

View Article


PHP Function getimagesize() Failing For Local Images

When working with images in a PHP script, there might come a time when you need to use the getimagesize() function in order to discover more about the image. Whether you want to know the dimensions or...

View Article

Taking Your WordPress Development To The Next Level

Having been an avid web developer for over 10 years now I’ve seen a lot of change during this time. One of which is the explosion in the use of WordPress Content Management System. About 90% of sites...

View Article


Querying Posts Using AJAX In WordPress Returns All Posts

I’ve found myself doing a lot of work recently with AJAX requests in WordPress. Today was no different when I was tasked with implementing an infinite scroll onto a blog. The user would scroll and the...

View Article

How to Sort an Array by Date using PHP

Recently I was working on a date-based script that needed to obtain a list of items and sort them by date. In my scenario it was a list of files and I needed to arrange them by their last modified...

View Article

Image may be NSFW.
Clik here to view.

How to Load jQuery in the Footer of a WordPress Website

If you’re familiar with building WordPress sites that use jQuery you may have seen it included using the following method in the header of a website: wp_enqueue_script('jquery'); wp_head(); You enqueue...

View Article
Browsing all 57 articles
Browse latest View live