Wordpres Post URL: add primary category

WordPress: Remove ‘category’ base from URL and add category to post URL

In wordpress you usually group your posts in categorys. And wordpress will automatically generate catagory-archives which display only the posts of a certain category.The URL-Structure for categories is: www.yourdomain.com/category/categoryname The hardcoded word category...
404 Umbraco error for aspx files

Umbraco Server: aspx-files return 404.3 Not Found Error

I came accross a weird problem today. I set up a new virtual server for an umbraco page and for some (or all) .aspx-files I would get an 404 error saying:404...
automatically create content on event, umbraco

Umbraco: Create content automatically on events

When you have big but repeating content-structures it might make the work of your conent editor easier to auto-create certain types of content.Lets say you have a document type for a...
Umbraco: The OwinStartupAttribute.FriendlyName value ‘UmbracoDefaultOwinStartup’ does not match the given value

Umbraco error: Owin​​Startup​Attribute.​​Friendly​Name

Everybody who is developing with Umbraco sooner or later gets this error message:The following errors occurred while attempting to load the app. - The OwinStartupAttribute.FriendlyName value 'UmbracoDefaultOwinStartup' does not match the given...
Wordpress Boostrap Menu with NaWalker

Create Bootstrap Navbar Menu for WordPress Website

If you are creating a new website you have to include dynamic menus at some point. The elegant way in wordpress to output the code for a menu would be to...
Upload Files to umbraco with custom dashboard

Umbraco: Picture / File upload for custom dashboard or property editor

When extending the Umbraco backoffice you might want to upload pictures or other files to the media section and link them to whatever you are doing by their id.This is very...
wordpress debugging coding snippets

Enable debugging and show php error messages on page in wordpress

While developing a wordpress website it is usefull to see (and understand) php error messages. If you are developing on a server and not localy these error-messages might be disabled.For a...
REST API wordpress deactivation

Disable WordPress REST API

Since version 4.4 Wordpress has a REST API.That means the content of the wordpress page can be accessed directly. This feature is usefull if you need the content of your database...
How to filter a HTML table without javascript and just CSS

Filter HTML table without javascript (just CSS)

Using too much javascript will make your page slower. And there are still a few people out there who don't use javascript at all. So in general it is a good...
How to set default text for new wordpress posts

Prepopulate texteditor of wordpress post with default text

Sometimes you are using the same template for each post. If you are using wordpress you can just put it as default text for new posts instead of copying it from...