Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

WordPress misses Publishing Schedule

I haven’t figured out why WordPress is missing schedule post, but I wrote a script that is ran with crontab that notifies me when it happens.

<?php include 'wp-load.php'; $total_missed_schedules = 0; $blogs = crontab_get_blogs(); $output = ''; foreach($blogs as $blog) { $blog_prefix = $wpdb->get_blog_prefix( $blog->blog_id ); $results = query_missed_schedules( $blog_prefix ); $total_missed_schedules += count($results); […]

How to Add CSS Styles to WordPress Breadcrumbs

functions.php

function get_page_parents( $id=0, $separator="/" ){ $itisme=get_post($id); $lineage = '<span>'.$itisme->post_title.'</span>'; $parentID=$itisme->post_parent; while( $parentID != 0 ){ $parent=get_post($parentID); $lineage='<a href="' . get_permalink($parent->ID) . '">' . $parent->post_title . '</a>'.$separator.$lineage; $parentID=$parent->post_parent; } return $lineage; } include 'includes/breadcrumb-styles.php'; add_action('wp_head', 'add_breadcrumb_styles');

page.php

<?php get_template_part( 'nav', 'above-page' ); ?>

nav-above-page.php

<div id="page-bread-crumbs"> <a class="home" href="/">Home</a> &gt; <?php echo get_page_parents( $post->ID, " […]