Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
marglinka
tagDiv Member

Hi,
I have same problem. I want to view every picture from gallery as a “page”, and now is error “The image #1 could not be loaded”. I don’t want to view pictures “on screen” – I would like to change it and view picture as attachment page.
Please, let me know how to fix it.

http://zaradna-mama.pl/2014/very-french-gangsters-mali-okularnicy/

marglinka
tagDiv Member

Hi, it does not work for me. Now I have in attachment.php:

/domain/wp-content/themes/Newspaper/

...
default:
        echo td_page_generator::wrap_start();
        ?>
            <div class="span8 column_container">
                <?php
                if (!empty($post->post_parent) and !empty($post->post_title)) {
                    echo td_page_generator::get_attachment_breadcrumbs($post->post_parent, $post->post_title);
                }

                if (is_single()) {?>
                    <h1 itemprop="name" class="entry-title td-page-title">
                            <span><?php the_title(); ?></span>
                    </h1><?php
                } else {?>
                    <h1 itemprop="name" class="entry-title td-page-title">
                        <a itemprop="url" href="<?php ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                    </h1><?php
                }

                    get_template_part('loop', 'attachment');
                ?>
				<div class="alignleft"><?php previous_image_link(); ?></div>
				<div class="alignright"><?php next_image_link(); ?></div>
				
            </div>
            <div class="span4 column_container">
                <?php get_sidebar(); ?>
            </div>
        <?php
        echo td_page_generator::wrap_end();
        break;
...

Can I do something wrong?

This is source code from browser:

...
<div class="td-attachment-page-content">
                
            </div>
            				<div class="alignleft"></div>
				<div class="alignright"></div>		
            </div>
...
marglinka
tagDiv Member

Hi,
Add this code:

<div class=”alignleft”><?php previous_image_link() ?></div>
<div class=”alignright”><?php next_image_link() ?></div>
like here: http://screencast.com/t/hBPGJRf05j

Thanks!

What I need to do is add these two lines to the file attachment.php? After the change does not display next/prev. What do I do wrong?
Mariusz

Viewing 4 posts - 1 through 4 (of 4 total)