Skip to content

Instantly share code, notes, and snippets.

@ostryweb-cz
ostryweb-cz / plugin.php
Created December 29, 2012 11:27
wordpress custom post type example czech blog.ostryweb.cz
function muj_add_post_type() {
register_post_type( 'muj_document',
array(
'labels' => array(
'name' => 'Dokument',
'singular_name' => 'Dokument',
'add_new' => 'Přidat dokument',
'add_new_item' => 'Přidat nový dokument',
'edit' => 'Upravit',
'edit_item' => 'Upravit dokument',
@ostryweb-cz
ostryweb-cz / gist:592245f8c402e0a8e436
Created January 24, 2015 19:18
Facebook categories
Abortion Services
Accessories Store
Accountant
Active Life
Acupuncture
Addiction Resources
Admissions Training
Adoption Service
Adult Education
Adult Entertainment
<link rel="stylesheet" id="website-style-css" href="https://www.website.cz/wp-content/themes/website/style.css?ver=1.0.1" type="text/css" media="all">
@ostryweb-cz
ostryweb-cz / functions.php
Last active February 12, 2019 20:25
style.css enqueue with stylesheet version
wp_enqueue_style( 'website-style', get_stylesheet_uri(), array(), wp_get_theme()->version );