Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have purchased a WP theme from Themeforest by Codestag called Shift and its a pretty easy to use and clean UI. It is mostly for blog style posts and they have created pre-made blog posts styles...

For example, an "Audio" post is text and the enbedded audio file. "Video" is the video link and text, "Photo" is obviously the photo and text.

My problem is that these are not customizable and the type of blog posts I create are either audio or video and include a photo of the artists or album art. What code do I need to add to allow this pre-made post to include a photo? (CODE BELOW)

The second question I have is how can I change the order from Audio file, Title, Text to Title , photo text and audio?

This is the code for the pre-made blog style: "Audio"

HTML
<div class="hentry-inner">

  <div class="entry-wrapper grids">

<?php get_template_part('content', 'meta'); ?>

<div class="entry-content grid-10 clearfix">

  <?php
  $embed = get_post_meta(get_the_ID(), '_stag_audio_embed', true);

  if(!empty($embed)){
    echo do_shortcode(htmlspecialchars_decode($embed));
  }else{
    stag_audio_player(get_the_ID());
  }

  ?>

  <?php if( is_single() ) { ?>

    <h1 class="entry-title"><?php the_title(); ?></h1>

  <?php } else { ?>

    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'stag'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
  <?php } ?>

  <?php

    if(!is_singular()){
      if(get_the_excerpt() != '') echo "<p>".strip_shortcodes(get_the_excerpt())."</p>";
    }else{
      the_content(__('Continue Reading', 'stag'));
      wp_link_pages(array('before' => '<p>'.__('Pages:', 'stag').' ',   'after' => '</p>', 'next_or_number' => 'number'));
    }

  ?>
</div>
 <span class="bottom-accent"></span>
  </div>
</div>



Much thanks in advance for the help!
-Peter
Posted
Updated 26-Sep-13 19:37pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900