[SOLVED] How to use Posttumbnails in full posts?
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 :) |
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:
My homepage www.mcdz.net I really want my picture so show up ;) |
well if you want t, take the line
HTML Code:
if (function_exists('the_post_thumbnail')) the_post_thumbnail(); HTML Code:
(is_home() AND !is_paged() AND $bfa_ata['postcount'] <= $bfa_ata['full_posts_homepage']) ) { |
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:
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 |
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. |
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... :confused: 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 Code:
PHP Code:
PHP Code:
|
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>') { |
Humm maby I have done some thing wrong... :p
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. |
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.
|
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 :) |
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? |
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 Code:
|
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.
|
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!!! |
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... |
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. |
Ok I understand,
thnx for the help anyway... :) |
All times are GMT -6. The time now is 02:42 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.