WARNING Create a snapshot before doing any changes!!!
Example new user data:
- Username: exampleuser
- Password: examplepassword
- Home: /home/exampleuser/
- IP: exa.mp.le.ip
<?php | |
$startDate = new DateTime("1976-04-30"); | |
$today = new DateTime('Y'); | |
$interval = $startDate->diff($today); | |
echo $interval->y . " YEARS"; | |
?> |
<?php | |
// Will output links displayed like: | |
// Tags: Article Tag | Other Article Tag | Another Article Tag | |
$post_tags = get_the_tags(); | |
$separator = ' | '; | |
$output = ''; | |
if (!empty($post_tags)) { | |
echo "Tags: "; |
<?php | |
//Note Wordpress only uses the first category applied to a post. | |
$category = get_the_category(); | |
if (!empty($category)) { | |
echo 'Category: <a class="post-category" href="' . esc_url(get_category_link($category[0]->term_id)) . '">' . esc_html($category[0]->name) . '</a>'; | |
} |