Dynamic Content Gallery – Where to put your plugin code in Atahualpa

While Dynamic Content Gallery is a beautiful and functional addition to your website, it requires more than just activating a plugin.  If you are using Atahualpa, you need to place code into the index.php file found under “Appearance”, “Editor” and looking on the right hand side while in the editor, find “Main Index Template” that will have a subtitle “index.php”.  Here is how you can add Dynamic Content Gallery to your Home (Front) Page.  This works when you have told WordPress to use a “Static Page” as your “Front Page” under “Settings” and “Reading”.

Here is the first part of my “Main Index Template/index.php” (Dynamic Content Gallery Code in Bold):

<?php
list($bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2, $bfa_ata[‘h_blogtitle’], $bfa_ata[‘h_posttitle’]) = bfa_get_options();
get_header();
extract($bfa_ata);
?>

<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata[‘postcount’] = 0; /* Postcount needed for option “XX first posts full posts, rest excerpts” */ ?>

<?php if( is_front_page() ) {
dynamic_content_gallery();
} ?>

<?php // Deactivated since 3.6.5
# include ‘bfa://content_above_loop’;
// Uses the following static code instead: ?>
<?php bfa_next_previous_page_links(‘Top’); // For MULTI post pages if activated at ATO -> Next/Previous Navigation:  ?>

Leave a Reply

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

Scroll to top