Forums

WP .osC using atahualpa template (3 posts)

  1. endeavourz
    Member
    Posted 2 years ago #

    I am very happy with how smoothly Atahualpa is working for my wordpress 2.7.1 blog. I am installing a wordpress store using the WP .osC plugin (very cool by the way), but it seems that the Atahualpa theme will not apply to the template. I get this error message after I set it to the Atahualpa theme:

    Warning: Invalid argument supplied for foreach() in /homepages/9/d200890229/htdocs/endeavourz/store/catalog/themes/atahualpa/index.php on line 3

    Fatal error: Call to undefined function: is_page() in /homepages/9/d200890229/htdocs/endeavourz/store/catalog/themes/atahualpa/index.php on line 10

    Here are the first few lines of my index.php file:

    <?php
    global $options;
    foreach ($options as $value) {
    	if (get_option( $value['id'] ) === FALSE) {
    		$$value['id'] = $value['std'];
    	} else {
    		$$value['id'] = get_option( $value['id'] );
    	}
    }
    if ( is_page() ) { global $wp_query; $current_page_id = $wp_query->get_queried_object_id(); }
    ?>
    <?php get_header(); ?>
    <?php // If there are any posts:
    if (have_posts()) : $postcount == 0; ?>
    <?php if( is_archive() AND function_exists('page2cat_output')) { page2cat_output($cat); } // This is for the plugin Page2Cat http://wordpress.org/extend/plugins/page2cat/ ?>

    Thanks for your help!

  2. roya khosravi
    Member
    Posted 2 years ago #

    Hi,

    Atahualpa theme for WP.osC is now available for download.

  3. endeavourz
    Member
    Posted 2 years ago #

    Thank you for your help Roya. WP .osC Forum got right back to me with this link (http://www.wposc.com/forums/topic.php?id=28) explaining how to make the fix. Still working out one minor issue with implementing fix, but probably my fault, not theirs. WP .osC has been great to work with so far!

Topic Closed

This topic has been closed to new replies.

About this Topic