Month: November 2015

Content snippet in blog posts with a shortcode

You’re having the same content snippet on multiple WordPress blog posts and are fed up with making changes to that small piece on each single post? I’m showing you how to create a custom WordPress shortcode that pulls the content from a single post and injects it right into your blog posts.

The situation

I used an ad managing plugin for displaying the same content inĀ multiple articles. Basically, those are a series of blog posts that had a table of contents.

« Read more about: Content snippet in blog posts with a shortcode  »

Different database connections in WordPress development environments

Since I am using version control with GIT, I have set up different environments for my current WordPress/Magento-married project. For this project, I did not want to continue “cowboy coding”, so I set up a remote staging / testing / development site and multiple local development sites. Each site has its own purposeĀ and needs its own MySQL database. So I had to handle different database connections in my WordPress installations. Well, I could work with only one DB,

« Read more about: Different database connections in WordPress development environments  »

Setting up a BitBucket git repo with A2 Hosting

Recently, I moved this website to A2 Hosting. Since I am using git at the office intensely for developing the company’s website, i felt like I’d have to continue using git for my home-story blog, too.

When I was a little more new to git, I chose Bitbucket as the service to host my repo. There I can have unlimited private repos with up to four more users and “sync”

« Read more about: Setting up a BitBucket git repo with A2 Hosting  »