|
#1
Feb 20, 2010, 05:16 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
I´m using this function today on my theme. How to edit so I can see my tumbnails and my full posts at the same time.
A way to owerride this setting:
"Post Thumbnails are only displayed on multi post pages, which have been set to display 'Only Excerpts'. See menu tab 'Configure Excerpts'"
A really big thnx for some help here....
I start all my post with a picture if I have to make the size to small or edit something on it to fit the first page I use the posttumbnail function to replace it when a user read the full post. But if the picutre is ok from the begining a olny use the basic image insert. So I have big problem here, alot of post to edit if this not working
Last edited by McDz; Feb 20, 2010 at 05:19 AM.
|
#2
Feb 22, 2010, 01:08 PM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
This is the bfa_post_parts.php plz hit me with some help...
I think this is the correct file to edit...?!?!?
The only file that I found with function_exists('the_post_thumbnail')) the_post_thumbnail();
plz
PHP Code:
<?php
function bfa_post_kicker($before = '<div class="post-kicker">', $after = '</div>') {
global $bfa_ata;
// don't display on WP Email pages
if(intval(get_query_var('email')) != 1) {
if( (is_home() AND $bfa_ata['post_kicker_home'] != "") OR
(is_page() AND $bfa_ata['post_kicker_page'] != "") OR
(is_single() AND $bfa_ata['post_kicker_single'] != "") OR
( (is_archive() OR is_search() OR is_author() OR is_tag()) AND $bfa_ata['post_kicker_multi'] != "") ) {
echo $before;
if ( is_home() ) {
echo postinfo($bfa_ata['post_kicker_home']);
} elseif ( is_page() ) {
echo postinfo($bfa_ata['post_kicker_page']);
} elseif ( is_single() ) {
echo postinfo($bfa_ata['post_kicker_single']);
} else {
echo postinfo($bfa_ata['post_kicker_multi']);
}
echo $after;
}
}
}
function bfa_post_headline($before = '<div class="post-headline">', $after = '</div>') {
global $bfa_ata, $post;
if ( is_single() OR is_page() ) {
$bfa_ata_body_title = get_post_meta($post->ID, 'bfa_ata_body_title', true);
$bfa_ata_display_body_title = get_post_meta($post->ID, 'bfa_ata_display_body_title', true);
} else {
$bfa_ata_body_title_multi = get_post_meta($post->ID, 'bfa_ata_body_title_multi', true);
}
if ( (!is_single() AND !is_page()) OR $bfa_ata_display_body_title == '' ) {
echo $before; ?>
<h<?php echo $bfa_ata['h_posttitle']; ?>><?php
if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php
}
if ( (is_single() OR is_page()) AND $bfa_ata_body_title != "" ) {
echo htmlentities($bfa_ata_body_title,ENT_QUOTES,'UTF-8');
} else {
if ( $bfa_ata_body_title_multi != '' ) echo htmlentities($bfa_ata_body_title_multi,ENT_QUOTES,'UTF-8');
else the_title();
}
if ( !is_single() AND !is_page() ) { ?></a><?php } ?></h><?php echo $bfa_ata['h_posttitle']; ?>>
<?php echo $after;
}
}
function bfa_post_byline($before = '<div class="post-byline">', $after = '</div>') {
global $bfa_ata, $post;
// don't display on WP Email pages
if(intval(get_query_var('email')) != 1) {
if( (is_home() AND $bfa_ata['post_byline_home'] != "") OR
(is_page() AND $bfa_ata['post_byline_page'] != "") OR
(is_single() AND $bfa_ata['post_byline_single'] != "") OR
( (is_archive() OR is_search() OR is_author() OR is_tag()) AND $bfa_ata['post_byline_multi'] != "") ) {
echo $before;
if ( is_home() ) {
echo postinfo($bfa_ata['post_byline_home']);
} elseif ( is_page() ) {
echo postinfo($bfa_ata['post_byline_page']);
} elseif ( is_single() ) {
echo postinfo($bfa_ata['post_byline_single']);
} else {
echo postinfo($bfa_ata['post_byline_multi']);
}
echo $after;
}
}
}
function bfa_post_bodycopy($before = '<div class="post-bodycopy clearfix">', $after = '</div>') {
global $bfa_ata, $post;
echo $before;
if ( (is_home() AND $bfa_ata['excerpts_home'] == "Full Posts") OR
(is_category() AND $bfa_ata['excerpts_category'] == "Full Posts") OR
(is_date() AND $bfa_ata['excerpts_archive'] == "Full Posts") OR
(is_tag() AND $bfa_ata['excerpts_tag'] == "Full Posts") OR
(is_search() AND $bfa_ata['excerpts_search'] == "Full Posts") OR
(is_author() AND $bfa_ata['excerpts_author'] == "Full Posts") OR
is_single() OR is_page() OR
(is_home() AND !is_paged() AND $bfa_ata['postcount'] <= $bfa_ata['full_posts_homepage']) ) {
$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), $bfa_ata['more_tag']);
the_content($bfa_ata_more_tag_final);
} else {
if (function_exists('the_post_thumbnail')) the_post_thumbnail();
the_excerpt();
}
echo $after;
}
function bfa_post_pagination($before = '<p class="post-pagination"><strong>Pages:', $after = '</strong></p>') {
global $bfa_ata;
if ( (is_home() AND $bfa_ata['excerpts_home'] == "Full Posts") OR
(is_category() AND $bfa_ata['excerpts_category'] == "Full Posts") OR
(is_date() AND $bfa_ata['excerpts_archive'] == "Full Posts") OR
(is_tag() AND $bfa_ata['excerpts_tag'] == "Full Posts") OR
(is_search() AND $bfa_ata['excerpts_search'] == "Full Posts") OR
(is_author() AND $bfa_ata['excerpts_author'] == "Full Posts") OR
is_single() OR is_page() ) {
wp_link_pages('before='.$before.'&after='.$after.'&next_or_number=number');
}
}
function bfa_archives_page($before = '<div class="archives-page">', $after = '</div>') {
global $bfa_ata;
if ( is_page() AND $bfa_ata['current_page_id'] == $bfa_ata['archives_page_id'] ) {
echo $before;
if ( $bfa_ata['archives_date_show'] == "Yes" ) { ?>
<h3><?php echo $bfa_ata['archives_date_title']; ?></h3>
<ul>
<?php wp_get_archives('type=' . $bfa_ata['archives_date_type'] . '&show_post_count=' .
($bfa_ata['archives_date_count'] == "Yes" ? '1' : '0') . ($bfa_ata['archives_date_limit'] != "" ? '&limit=' .
$bfa_ata['archives_date_limit'] : '')); ?>
</ul>
<?php }
if ( $bfa_ata['archives_category_show'] == "Yes" ) { ?>
<h3><?php echo $bfa_ata['archives_category_title']; ?></h3>
<ul>
<?php wp_list_categories('title_li=&orderby=' . $bfa_ata['archives_category_orderby'] .
'&order=' . $bfa_ata['archives_category_order'] .
'&show_count=' . ($bfa_ata['archives_category_count'] == "Yes" ? '1' : '0') .
'&depth=' . $bfa_ata['archives_category_depth'] .
($bfa_ata['archives_category_feed'] == "Yes" ? '&feed_image=' . get_bloginfo('template_directory') .
'/images/icons/feed.gif' : '')); ?>
</ul>
<?php }
echo $after;
}
}
function bfa_post_footer($before = '<div class="post-footer">', $after = '</div>') {
global $bfa_ata;
// don't display on WP Email pages
if(intval(get_query_var('email')) != 1) {
if( (is_home() AND $bfa_ata['post_footer_home'] != "") OR
(is_page() AND $bfa_ata['post_footer_page'] != "") OR
(is_single() AND $bfa_ata['post_footer_single'] != "") OR
( (is_archive() OR is_search() OR is_author() OR is_tag()) AND $bfa_ata['post_footer_multi'] != "") ) {
echo $before;
if ( is_home() ) {
echo postinfo($bfa_ata['post_footer_home']);
} elseif ( is_page() ) {
echo postinfo($bfa_ata['post_footer_page']);
} elseif ( is_single() ) {
echo postinfo($bfa_ata['post_footer_single']);
} else {
echo postinfo($bfa_ata['post_footer_multi']);
}
echo $after;
}
}
}
function bfa_get_comments() {
global $bfa_ata;
// Load Comments template (on single post pages, and "Page" pages, if set on options page)
if ( is_single() OR ( is_page() AND $bfa_ata['comments_on_pages'] == "Yes") ) {
// don't display on WP-Email pages
if( intval(get_query_var('email')) != 1 ) {
if ( function_exists('paged_comments') ) {
// If plugin "Paged Comments" is activated, for WP 2.6 and older
paged_comments_template();
} else {
// This will load either legacy comments template (for WP 2.6 and older) or the new standard comments template (for WP 2.7 and newer)
comments_template();
}
}
}
}
?>
My homepage www.mcdz.net I really want my picture so show up
Last edited by McDz; Feb 22, 2010 at 01:11 PM.
|
#3
Feb 22, 2010, 02:38 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
well if you want t, take the line
HTML Code:
if (function_exists('the_post_thumbnail')) the_post_thumbnail();
and put a copy after the line
HTML Code:
(is_home() AND !is_paged() AND $bfa_ata['postcount'] <= $bfa_ata['full_posts_homepage']) ) {
in the first part of teh if statement
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#4
Feb 23, 2010, 01:56 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
Humm, some CSS tags is not cloesed on the corret way..
When I put that in the code...
All my pages changes to bold text and any subject got the wrong name... For example "Movies" got the name "Movies1>"
But I can see my pictures on the first page
What have I done wrong....???
I let my homepage open so you can see it online with the canges below...
PHP Code:
function bfa_post_bodycopy($before = '<div class="post-bodycopy clearfix">', $after = '</div>') {
global $bfa_ata, $post;
echo $before;
if ( (is_home() AND $bfa_ata['excerpts_home'] == "Full Posts") OR
(is_category() AND $bfa_ata['excerpts_category'] == "Full Posts") OR
(is_date() AND $bfa_ata['excerpts_archive'] == "Full Posts") OR
(is_tag() AND $bfa_ata['excerpts_tag'] == "Full Posts") OR
(is_search() AND $bfa_ata['excerpts_search'] == "Full Posts") OR
(is_author() AND $bfa_ata['excerpts_author'] == "Full Posts") OR
is_single() OR is_page() OR
(is_home() AND !is_paged() AND $bfa_ata['postcount'] <= $bfa_ata['full_posts_homepage']) ) {
if (function_exists('the_post_thumbnail')) the_post_thumbnail();
$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), $bfa_ata['more_tag']);
the_content($bfa_ata_more_tag_final);
} else {
if (function_exists('the_post_thumbnail')) the_post_thumbnail();
the_excerpt();
}
echo $after;
}
I found one more problem if I go to a post with tumbnail the tumbnail isent removed if I see all of the post...
(The the first picture is an thumbnail and should not been shown here only on the first page...)
http://www.mcdz.net/?p=1419
Last edited by McDz; Feb 23, 2010 at 04:07 AM.
|
#5
Feb 23, 2010, 06:25 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
The extra character a the end of the title should not be related to adding in this line of code. What other changes to the code or to 'the LOOP' have you made. My guess is you added something else and instead of ending a line of PHP with the '?>' you put in a '1>' eithor that of some HTML is incorrect.
This could also explain the messed up CSS. If the HTML isn't formed correctly, then the selector may not match and the rules are not applied.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#6
Feb 23, 2010, 06:50 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
I dont think that I have made that.. because some subjects also changes to 2>
Pages and fullpost view subject changes to "subject1>"
http://www.mcdz.net/?page_id=234
http://www.mcdz.net/?p=1380
Post subjects changes to"subject2>"
http://www.mcdz.net/
So something else is wrong...
If I remove that line the tumbnail line homepage is correct again!
I have not change any Atahualpa php or html files...
and the lines below is orginal.
Content ABOVE the LOOP
PHP Code:
<?php /* For MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Top'); ?>
<?php /* For the plugin Page2Cat http://wordpress.org/extend/plugins/page2cat/ */
if( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?>
The LOOP
PHP Code:
<?php /* For SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Top'); ?>
<?php /* Post Container starts here */
if ( function_exists('post_class') ) { ?>
<div <?php if ( is_page() ) { post_class('post'); } else { post_class("$odd_or_even"); } ?> id="post-<?php the_ID(); ?>">
<?php } else { ?>
<div class="<?php echo ( is_page() ? 'page ' : '' ) . $odd_or_even . ' post" id="post-'; the_ID(); ?>">
<?php } ?>
<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
<?php bfa_post_pagination('<p class="post-pagination"><strong>'.__('Pages:','atahualpa').'</strong>','</p>'); ?>
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
</div><!-- / Post -->
Content BELOW the LOOP
PHP Code:
<?php /* Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Middle'); ?>
<?php /* Load Comments template (on single post pages, and static pages, if set on options page): */
bfa_get_comments(); ?>
<?php /* Displayed on SINGLE post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_post_links('Bottom'); ?>
<?php /* Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: */
bfa_archives_page('<div class="archives-page">','</div>'); ?>
<?php /* Displayed on MULTI post pages if activated at ATO -> Next/Previous Navigation: */
bfa_next_previous_page_links('Bottom'); ?>
Content if NOT FOUND
PHP Code:
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>
Last edited by McDz; Feb 23, 2010 at 07:03 AM.
|
#7
Feb 23, 2010, 07:03 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I know what this is. On a multi post page, the titles are H2, on a single post page, they are H1's What you are seeing is the </h1> and </h2> but yours are messed up and are showing as '</h>1>' and '</h>2>'.
Did you ever mess with the code in bfa_post_parts.php function bfa_post_headline?? It should look like this
HTML Code:
function bfa_post_headline($before = '<div class="post-headline">', $after = '</div>') {
global $bfa_ata, $post;
if ( is_single() OR is_page() ) {
$bfa_ata_body_title = get_post_meta($post->ID, 'bfa_ata_body_title', true);
$bfa_ata_display_body_title = get_post_meta($post->ID, 'bfa_ata_display_body_title', true);
} else {
$bfa_ata_body_title_multi = get_post_meta($post->ID, 'bfa_ata_body_title_multi', true);
}
if ( (!is_single() AND !is_page()) OR $bfa_ata_display_body_title == '' ) {
echo $before; ?>
<h<?php echo $bfa_ata['h_posttitle']; ?>><?php
if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php
}
if ( (is_single() OR is_page()) AND $bfa_ata_body_title != "" ) {
echo htmlentities($bfa_ata_body_title,ENT_QUOTES,'UTF-8');
} else {
if ( $bfa_ata_body_title_multi != '' ) echo htmlentities($bfa_ata_body_title_multi,ENT_QUOTES,'UTF-8');
else the_title();
}
if ( !is_single() AND !is_page() ) { ?></a><?php } ?></h<?php echo $bfa_ata['h_posttitle']; ?>>
<?php echo $after;
}
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#8
Feb 23, 2010, 07:56 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
Humm maby I have done some thing wrong...
Up and runing vid the CSS thing
BUT... I see the tumbnails in the full posts...*
http://www.mcdz.net/?p=1419#more-1419
If the function is correct the tumbnails wont be there when I read the full post.
* In that post picture http://www.mcdz.net/wp-content/uploads/100125.jpg is a tumbnail.
Last edited by McDz; Feb 23, 2010 at 08:02 AM.
|
#9
Feb 23, 2010, 08:22 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
No the code you added will cause the thumbnail to show up all the time (if you put something in the IF and ELSE it will always happen.) - your first request was to put the thumbnails in the full posts. so I'm confuset, do you want them in full posts or not or are you looking for them on the full posts on a multi post page, but not on a single post page. If that is the case you are going to need more logic.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#10
Feb 23, 2010, 08:51 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
Im sorry if I mess things up
I have now make a new category called "Test" with two posts.
One with a ordinary picrure with subject "Test post", and one with 2 pictures - tumbnailpicture and ordinary picture with subjucet "Test post 1"
In the category view or the start page, serch page I will see the tumbnails and full post like it is now
http://www.mcdz.net/?cat=13 or http://www.mcdz.net
Is this what you called multipost pages?
But if I push the read more buttom on the "test post 1" post I dont wont the tumbnails.
http://www.mcdz.net/?p=1974#more-1974
Is this what you called singel pages?
I hope you understand my bad english
Last edited by McDz; Feb 24, 2010 at 02:00 AM.
|
#11
Feb 24, 2010, 08:18 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
a multipost page is any page that shows more than one post
I think I understand what you want, but am not sure it can be done. The thumbnail code is designed to display an small image when displaying a post EXCERPT on a multipost page.
I think you just want is this logic
If this is this a multipost page? If so, is there a thumbnail? if so display the thumbnail
else do the normal processing.
is that correct?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#12
Feb 24, 2010, 11:06 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
I think you understand me now
It can be made...
I have change theme now to one thats work, so you can see...
But I realy would use Atahualpa theme...
More easy to edit things, and have more functions that I use, thats not work in the theme thats activated now.
Mabey this will help you?
index.php
PHP Code:
<?php get_header(); ?>
<div class="colmask rightmenu">
<div class="colleft">
<div class="col1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>">
<?php the_ttftitle(); ?>
</a></h2>
<div class="postinfo">
Postat <?php the_time(__('l j M Y', 'r755')) ?> i <?php _e('Kategorin ','r755');?><?php the_category(', '); ?>
| <a href="<?php comments_link(); ?>">
<?php comments_number(__('Inga kommentarer','r755'), __('1 Kommentar','r755'), __('% Kommentarer','r755'), '', __('Kommentarer är avstängda','r755')); ?>
</a>
<?php edit_post_link(__('Red','r755'), '[', ']'); ?>
<br />
</div>
<div class="entry">
<!-- Excerpt With Thumbnail Layout/ -->
<?php $use_excerpts = get_option('r755_use_excerpts'); ?>
<?php if ($use_excerpts == "true") {?>
<?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
<a title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(array(500,300), array('class' => 'alignleft')) ?>
</a>
<?php else : ?>
<?php $thumbnail = get_post_meta($post->ID, 'thumbnail', true); //If post does not have a thumbnail (WP 2.9+), it gets the value from the custom field, "thumbnail"
if ($thumbnail) { //if the user set a custom field named thumbnail ?>
<a title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>" href="<?php the_permalink(); ?>"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $thumbnail; ?>&h=150&w=150&zc=1&q=75" alt="<?php the_title(); ?>" class="alignleft" /></a>
<?php } ?>
<?php $exthumb = get_post_meta($post->ID, 'exthumb', true); //Cuntom field for a remote hosted thumbnail (e.g. YouTube video screenshon). Gets the value from the custom field, "exthumb"
if ($exthumb) { //if the user set a custom field named exthumb ?>
<a title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>" href="<?php the_permalink(); ?>"><img src="<?php echo $exthumb; ?>" alt="<?php the_title(); ?>" class="alignleft" width="150" height="150" /></a>
<?php } ?>
<?php endif ; ?>
<?php the_content_limit(1000, "Läs mer »"); ?>
<br class="clearFloat" />
<?php } else { ?>
<!-- /Excerpt With Thumbnail Layout -->
<!-- Normal Layout/ -->
<?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
<a title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>" href="<?php the_permalink(); ?>"> <?php the_post_thumbnail(array(500,300), array('class' => 'alignleft')) ?>
</a>
<?php endif; ?>
<?php the_content(__('Läs mer »', 'r755')); ?>
<br class="clearFloat" />
<!-- /Normal Layout -->
<?php } ?>
</div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_page_numbers')) : ?>
<?php wp_page_numbers() ?>
<?php else : ?>
<div class="alignleft">
<?php next_posts_link(__('« Older Entries', 'r755')) ?>
</div>
<div class="alignright">
<?php previous_posts_link(__('Newer Entries »', 'r755')) ?>
</div>
<br />
<?php endif; ?>
<?php else: ?>
<h2>
<?php _e('Not Found', 'r755'); ?>
</h2>
<p>
<?php _e('Sorry, but you are looking for something that isn’t here.', 'r755'); ?>
</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
post.php
PHP Code:
<?php get_header(); ?>
<div class="colmask rightmenu">
<div class="colleft">
<div class="col1">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'r755'), the_title_attribute('echo=0')); ?>">
<?php the_ttftitle(); ?>
</a></h2>
<div class="entry">
<?php the_content(__('Läs mer »', 'r755')); ?>
</div>
<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'r755') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div class="printinfo">
<?php $copyright_name = get_option('r755_copyright_name'); ?>
<?php _e('Printed from:', 'r755'); ?>
<?php the_permalink(); ?>
.<br />
© <?php echo $copyright_name; ?> <?php echo date('Y') ?>. </div>
</div>
<?php comments_template('', true); ?>
<?php endwhile; else: ?>
<h2>
<?php _e('Not Found', 'r755'); ?>
</h2>
<p>
<?php _e('Sorry, but you are looking for something that isn’t here.', 'r755'); ?>
</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
Last edited by McDz; Feb 24, 2010 at 11:23 AM.
|
#13
Feb 24, 2010, 11:51 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
are you using full posts or excerpts o the multipost page? because if you are using the excerpts, you could just hand craft the excerpt and put the small image there and have the big image in the actuall post.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#14
Feb 24, 2010, 02:07 PM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
I have full posts, tested only excerpts now (check out the results)... the only thing that happen is that my orginalpictures dont show up on the multipage only tumbnails... So its better to use full post and your modification..
[IMG]n/a[/IMG]
But if I use only exerpts there is two picutres in a post, the orginal and the tumbnail when I go to a singelpost page.
[IMG]n/a[/IMG]
Thnx for your help juggledad!!!
Last edited by McDz; Mar 8, 2010 at 02:43 AM.
|
#15
Feb 27, 2010, 05:45 PM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
Please help me to remove the tumbnails on singelpost pages with your modification...
(multipostpages = tumbnails and full post. Singel post = no tumbnails)
[IMG]n/a[/IMG]
Thnx, I will give you a big hug, and next time you are in Sweden I will take you with me and fish some big pikes... !
##############################################
Im testing and testing...
I found at the admin page "Excerpt length" and set it to 50... and if i change to use "only excerpts" , I see text from my older post (50 words) and everything with the tumbnails works.. Is there some way to dont remove the picutres there in the text (50words)..
Mabey this is the easiest way...
Last edited by McDz; Mar 8, 2010 at 02:43 AM.
|
#16
Mar 4, 2010, 05:23 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
my suggestion is to hand craft the excerpts (see the manual excerpt are of the posts).
I can't figre out a way to do what you want in the code for ALL cases.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#17
Mar 8, 2010, 02:41 AM
|
|
|
|
32 posts · Jan 2010
Sweden
|
|
Ok I understand,
thnx for the help anyway...
|
Similar Threads
|
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
[SOLVED] Display full posts in categories
|
kam |
Center area post/pages |
2 |
Jan 26, 2010 02:35 PM |
Different styles for excerpts and full posts?
|
daniel3ub |
Excerpts, Read more, Pagination |
3 |
Oct 20, 2009 07:09 PM |
[SOLVED] RSS feed delvers full posts rather than excerpts
|
AlanD |
RSS, Feeds & Subscribing |
5 |
Sep 29, 2009 03:59 PM |
Showing Excerpts or Full Post Depending Upon Number of Posts
|
LindaS |
Excerpts, Read more, Pagination |
0 |
Sep 8, 2009 07:27 AM |
full posts on Category pages without the link
|
curious |
Page & Category Menu Bars |
5 |
May 6, 2009 08:56 AM |
|