Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!
Dynamic Content Gallery Resources
DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.
Note that the current stable release of the DCG is version 3.3.5.
Topic RSS
closed
12:22 pm
Hi,
Firstly sorry for posting this in a separate topic as previous issues discussed were not helpful for my problem. I am a novice user and I am here to get a solution for my strange problem.
In my theme, I have included the code in index.php file, where I am getting only a black screen.
I uploaded the screenshot for your reference. Its url is is http://tinypic.com/r/2w7pmk4/6
Kindly help asap.
For your information, my index.phpgoes like this..
/**************************INDEX.PHP*******************************/
<?php get_header(); ?>
<!– BEGIN content –>
<div id="content">
dynamic_content_gallery();
<!– begin featured news –>
<div class="featured">
<h2>Featured News</h2>
<div id="featured">
<?php
$tmp_query = $wp_query;
query_posts('showposts=3&cat=' . get_cat_ID(dp_settings('featured')));
if (have_posts()) :
while (have_posts()) : the_post();
?>
<!– begin post –>
<div class="fpost">
<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p class="details"></p>
<p><?php echo dp_clean($post->post_content, 300); ?></p>
</div>
<!– end post –>
<?php endwhile; endif; ?>
</div>
</div>
<!– end featured news –>
<?php
$wp_query = $tmp_query;
if (have_posts()) :
$odd = false;
while (have_posts()) : the_post();
$odd = !$odd;
?>
<!– begin post –>
<div class="<?php if ($odd) echo 'uneven '; ?>post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<a href="<?php the_permalink(); ?>"></a>
<?php $screen = get_post_meta($post->ID,'screen', true); ?>
<img src="<?php echo ($screen); ?>" width="181" height="100" alt="" />
<p><?php echo dp_clean($post->post_content, 150); ?></p>
<div class="postmeta">
<p class="category"><?php the_category(', '); ?></p>
<p class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
</div>
</div>
<!– end post –>
<?php endwhile; ?>
<div class="postnav">
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div>
<?php else : ?>
<div class="notfound">
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
</div>
<!– END content –>
<?php get_sidebar(); get_footer(); ?>
/******************************************************************/
I request you people to help me out. Thanks in Advance!
8:57 pm
August 25, 2008
OfflineHi,
Your URL would be useful so that I can see the problem in action.
Assuming the code you posted is as per the code you are using, the dynamic_content_gallery code needs to be in PHP tags, like this:
Most Users Ever Online: 28
Currently Online:
9 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
johnbroome: 13
sjpeaches: 12
speedyp: 12
CherylMcL: 10
littlemerry: 8
lsnoei: 8
Member Stats:
Guest Posters: 770
Members: 1297
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 7
Topics: 978
Posts: 4293
Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi
Moderators:
Administrators: Ade (2490)
Log In
Register
Home

Dynamic Content Gallery: Have you read the 