Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] Dynamic Content Gallery (http://forum.bytesforall.com/showthread.php?t=8851)

koinonos Aug 12, 2010 06:39 AM

[SOLVED] Dynamic Content Gallery
 
Hello

I'm trying to use Dynamic Content Gallery with my Atahualpa 3.5.3 based website: http://www.gloucestershiresymphony.org.uk/.

I've tried using the instructions, but I think I'm missing a step.

Please could someone let me know:
1) What code I need to put in the template.
2) Which template to put it in (Centre Column Under the Loop or index.php after get_header(); ?>)?
3) Where to put the image files?
4) What code (if any) I need to put in the page to display the Gallery?

Thank you.

lmilesw Aug 12, 2010 07:21 AM

I just installed this on a site and used the widget in a new widget area I created. In my case I wanted it to show above the posts so I put the Add New Widget Area code in ATO>Style & edit Center Column>Content Above the Loop. Then I just used the plugin settings for setting the size etc. The setting page also has instructions on using with Posts or Pages. In my case I used Pages and the image is set when editing a page.

slpatters Aug 18, 2010 09:56 AM

Please understand that I'm new to both Atahualpa. I have Dynamic Content Gallery working on the TwentyTen theme, but can't get it to work right on Atahualpa. Is it possible to get Dynamic Content Gallery to only show on main page and not other pages?

WordPress 3.0.1
Atahualpa 3.5.3
Dynamic Content Gallery 3.2.3

Thanks for all your help!!

lmilesw Aug 18, 2010 10:34 AM

slpatters - There is a setting in Dynamic Content Gallery to put it just on the home page.

slpatters Aug 18, 2010 10:54 AM

It works following their directions with TwentyTen (adding the following to home.php), but there isn't a home.php in Atahuapla.

PHP Code:

<?php dynamic_content_gallery(); ?>

is added as shown below:

PHP Code:

<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query. 
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>

<div id="container">
  <div id="content" role="main">
      <div id="gallery">
        <!--
        <hr style="color:#ee88bb;background-color:#ee88bb;height:10px;border:none;width:100%" /></center>
        -->
        <h2 class="entry-title" style="color:#ee88bb;">Recently...</h2>
        <?php dynamic_content_gallery(); ?>
       <center><hr style="color:#ee88bb;background-color:#ee88bb;height:10px;border:none;width:100%" /></center>
              
      </div><!-- #gallery -->
    
    <?php
        
/* Run the loop to output the posts.
         * If you want to overload this in a child theme then include a file
         * called loop-index.php and that will be used instead.
         */
         
get_template_part'loop''index' );
    
?>
  </div><!-- #content -->
</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>


lmilesw Aug 18, 2010 11:54 AM

But you can put that code in ATO>Style & edit Center Column>Content ABOVE the LOOP. Just paste it above all the other code that is there.

slpatters Aug 18, 2010 02:12 PM

I must be doing something wrong or I don't "get" it (probably the latter or both) because the page goes blank. I'd share, but it's on my local machine not on internet accessible site.

slpatters Aug 18, 2010 04:35 PM

I got it working! Thank you for your help!!!! :)

To get it to only put it on the home page, I added the following:
PHP Code:

if( is_home() ) 

So the whole block, including a header is:
PHP Code:

<?php if( is_home() ) 
  { 
?>
    <h2 class="entry-title" style="color:#ee88bb;">Recently ...</h2>
    <?php dynamic_content_gallery();
  }
?>

Thanks again!! :)


All times are GMT -6. The time now is 07:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.