-
AuthorPosts
-
January 17, 2014 at 11:05 am #211155
I have installed the plugin Sermon Manager. It requires to the update the template file with this code
// Setting up the Query – see http://codex.wordpress.org/Class_Reference/WP_Query
$latest_sermon = new WP_Query(array(
‘post_type’ => ‘wpfc_sermon’,
‘posts_per_page’ => 1,
‘post_status’ => ‘publish’,
// Do you want to limit it to a specific service type? Use the service type slug to do it:
// More info here: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
‘wpfc_service_type’ => ‘sunday-am’,
// The last three parameters will optimize your query
‘no_found_rows’ => true,
‘update_post_term_cache’ => false,
‘update_post_meta_cache’ => false
));
if ($latest_sermon->have_posts()) :
?>
<?php while ($latest_sermon->have_posts()) : $latest_sermon->the_post(); ?>
<?php global $post; ?><div id=”latest_sermon”>
” href=”<?php the_permalink() ?>”><?php the_title(); ?>
<span class=”meta”>
<?php wpfc_sermon_meta(‘bible_passage’, ‘<span class=”bible_passage”>’.__( ‘Bible Text: ‘, ‘sermon-manager’), ‘</span> | ‘);
wpfc_sermon_date(get_option(‘date_format’)); ?>
</span>
<?php // this will output the media links ?>
<?php wpfc_sermon_files(); ?>
</div>
<?php endwhile; ?>
<?php // reset the $post variable like below: ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
Where and which file do I up date?January 17, 2014 at 11:10 am #211158This is plugin’s page which refers to the template file update:-
http://www.wpforchurch.com/knowledgebase/getting-latest-sermon-display-theme/January 18, 2014 at 8:18 am #211524Hey!
This kind of customization to the theme files is beyond what we can help with via support. You’ll need to look into a freelance developer who can assist you with modifying the Sermon custom post type and its template file as needed.
Its not a simple answer and I don’t want to give a partial answer as it could lead down a completely incorrect path depending on what the final result is supposed to be.
You can check with somewhere like Microlancer or Codeable and it should take 1-2 hours from the looks of it.
Regards,
Devin -
AuthorPosts
- The topic ‘Change template for Sermons Manager’ is closed to new replies.