Fix Church Theme Option Error

Fix Church Theme Option Error

fix church theme option error
Many people aks (and i also feel it too), that Studiopress Church theme options were error. Everytime we modify this Church Theme Option page (change category, number of post, etc), when we click the save button it always return to the default setting. How to solve the problems?

Some people said that this Church theme Option Page error caused by new version of wordpress, but i do not know exactly is this true or not. All i know that this Option Page really error (like i describe above).

This article will not describe to you, how to fix this option page to get back as normal as before, but this article will help you to make this CHURCH THEME will works without using option page feature. Not all modification will discussed here, its only give you one and two ideas, so you can do all the rest.

As the example, i use the Child Church Theme ver 4.0
Lets, open the HOME.PHP file, and see what is inside. This script below were part of the script inside it

  1. <?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?>
  3. <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
  4. ID, "thumb", true) ): ?>
  5. <a href="" rel="bookmark"><img class="thumb" src="/tools/timthumb.php?src=ID, "thumb", $single = true); ?>&h=&w=&zc=1" alt="" />
  9. <a href="" rel="bookmark">
  17. <a href="<?php echo get_category_link(get_theme_mod('featured_top_left')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_top_left')); ?>

Before you modify this file, you must know the ID number of the category which you want to use. To know your category ID, you can read this tips.

Lets assume that you want to use category which have id number 2.
# Script line 2, this responsible to show Category Name.
echo cat_id_to_name(get_theme_mod(‘featured_top_left’));

Change into ==>
echo cat_id_to_name(2);

# Script line 4, this script responsible for show the post (from what category), and how much post will show.
$recent = new WP_Query(“cat=”.get_theme_mod(‘featured_top_left’).”&showposts=”.get_theme_mod(‘featured_top_left_num’));

Change into ==> (assume that you want to show 13 post in this area
$recent = new WP_Query(“cat=2&showposts=13“);

Facebook comments:

One Response to “Fix Church Theme Option Error”

  1. Al says:

    Any ideas on changing

    rel=”bookmark”>name; ?>

    To refer readers to the correct category page?


Leave a Reply

Your email address will not be published. Required fields are marked *

six − three =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

AutoBlog Theme located at Indonesia , Malang, East Java . Reviewed by 98 customers rated: 4.4 / 5