Category PHP

Simple PHP REST API

I build a simple REST API in Object oriented PHP. It can be found on GitHub here. I started off with table structure and tutorial from Medium’s article Rest Api In OOP PHP Step By Step. The app: REAST API’s…

Blocky’s child theme

Following wordpress’ recomendation: In …/wp-content/themes I made a blocksy-child folder with two files, style.css and functions.php. style.css If the parent theme loads its style using a function starting with get_template, such as get_template_directory() and get_template_directory_uri(), the child theme needs to…

Display posts by tag

There is no direct way using just Worpdress without a plugin to display posts by tag. It s possible using e.g. this shortcode. Here the hyperlinks to the posts with the tag ‘game’ are displayed in an ordered list. The…