Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Two problems page.php edit & image fitting

fixed
UserPost

8:51 pm
February 10, 2010


immcpeak

VA

Member

posts 4

1

I love this WP plugin and fully intend to donate.

I had the slideshow working great on site I'm developing on my Mac, so I can't post the link here. I know zero coding. I had placed DCG into "page.php" according to the method given in instructions and all was working fine.

I thought I was making correct edits to fit images, but instead screwed up my page files. Then I couldn't fix it!! I somehow deleted a line or symbol that I need. Can you please look at my current page.php code and tell me what is missing (my entire site went blank)?

If it helps, I had edited it near the very bottom, right before footer.

<?php

/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?>
<div id="wp_content_wrapper" class="autoheight">
    <div id="wp_content" class="autoheight content_typography">
        <div id="wp_content_single">
            <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
                <div class="post" id="post-<?php the_ID(); ?>">
                    <h2 class="posttitle"><?php the_title(); ?></h2>
                    <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
                    <div class="fix"></div>
                    <?php wp_link_pages(array('before' => <div
'<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
                </div>
                <?php if($post->comment_status == 'open') comments_template(); ?>
            <?php endwhile;  edit_post_link('', '<p>', '</p>');  else: ?>
            <div class="post">
            <p>Sorry, no posts matched your criteria.</p>
            </div>
            <?php endif; ?>
            
        </div>
    </div>
<?php get_footer(); ?>

10:55 pm
February 10, 2010


Ade

Admin

posts 1140

2

Hi,

Glad you like the plugin. I'm always amused when people say "I intend to donate" and then ask a support question (in this case completely unrelated to my plugin)*. Is this intended to get me to give you support? If you want to donate because you think the plugin is worth something to you, thanks, much appreciated. If you don't want to, don't…

Try removing this:

<div

from the wp_link_pages code.

A tip: use a decent code editor – they show syntax errors, which makes life a lot easier when trying to diagnose coding issues.

*If you think this is harsh, don't take it personally. I'm just not interested in carrot dangling. If you have a question unrelated to the plugin, fire away, and I'll do my best to answer it if I have time.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

11:51 pm
February 10, 2010


immcpeak

VA

Member

posts 4

3

Totally worked! Thank you.

No intention to offend… I'm not used to people who do things WITHOUT carrots. Rock on :-)

1:44 am
February 11, 2010


Ade

Admin

posts 1140

4

No worries. Glad it worked. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?