blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

blah blah ... blah blah blah ... I'm a document ... blah blah, and blah blaaahhhh blah

Draft Watermark

Found this with a quick google: … http://webreflection.blogspot.co.uk/2014/09/a-simple-css-page-watermark.html

Screenshot of website clearly indicating presence and location of additional Categories menu button

Adding the CATEGORIES navigation menu to Simone theme

I’m already forgetting how I did this, and there’s still more to do, so trying to record some of it here. It’s all very unpolished and trial by error so far. (Like this site!) The purpose is that a primary reason behind my thinking for this site, is to be able to record and index […]

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <?php
    if (has_post_thumbnail()) {
        echo '<div class="single-post-thumbnail clear">';
        echo '<div class="image-shifter">';
        the_post_thumbnail();
        echo '</div>';
        echo '</div>';
    }
    else  if ( get_post_meta( $post->ID, 'featured-div', true ) )
    {
        echo '<div style="max-width: 100%; overflow: hidden;" class="single-post-thumbnail clear">'; 
        echo '<div class="image-shifter">';
        echo get_post_meta($post->ID, 'featured-div', true);
        echo '</div>';
        echo '</div>';
    }
    else  if ( get_post_meta( $post->ID, 'featured-xpost', true ) )
    {
        // get custom post type xpost by slug, and insert
        // so that shortcodes are processed getting the content
        echo '<div style="max-width: 100%; overflow: hidden;" class="single-post-thumbnail clear">'; 
        echo '<div class="image-shifter">';
        $xpostslug = get_post_meta($post->ID, 'featured-xpost', true);
        $args = array(
          'name'        => $xpostslug,
          'post_type'   => 'xpost',
          'post_status' => 'publish',
          'numberposts' => 1
        );
        $my_posts = get_posts($args);
        if( $my_posts )
        {
          // echo 'ID on the first post found ' . $my_posts[0]->ID;
          // echo $my_posts[0]->post_content; // this wouldn't process the shortcodes
          $xpostID = $my_posts[0]->ID;
          echo do_shortcode(get_post_field('post_content', $xpostID));
        }
        else
        {
          echo 'ERROR: FEATURED XPOST NOT FOUND';
        }
        echo '</div>';
        echo '</div>';
    }
    ?>

WordPress Theme tinkering – featured div vs featured image

As I’m revising this blog (so far), retrospectively updating elements and enhancing my own plug-in, I decided it’d be cool to be able to have a “featured div” sometimes, in place of a “featured image”.