GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress help - fxing truncated posts (https://gfy.com/showthread.php?t=868448)

DWB 11-11-2008 05:58 AM

Wordpress help - fxing truncated posts
 
How do you stop the posts on the main page from truncating and not formatting?

The front page post is all mushed together and if you click in to read more, THEN it formats correctly.

Where do I fix this?

TheSenator 11-11-2008 06:02 AM

Post link.

DWB 11-11-2008 08:46 AM

Quote:

Originally Posted by TheSenator (Post 15035757)
Post link.

Are you asking for me to post a link to my blog or telling me the fix is in the posts.php template (which I don't see a problem with).

HorseShit 11-11-2008 08:55 AM

show us what's it doing, much easier to give you advice

DWB 11-11-2008 01:00 PM

Quote:

Originally Posted by jdavis (Post 15036558)
show us what's it doing, much easier to give you advice

Example:

If I write text like this and then make a line break in the text, I can.

It breaks and should look like this. It DOES once you click the perma link and the post opens in it's own page.

However, on the main page it would look like this:


If I write text like this and then make a line break in the text, I can.
It breaks and should look like this. It DOES once you click the perma link and the post opens [+]...

RTP 11-11-2008 01:08 PM

Quote:

Originally Posted by DirtyWhiteBoy (Post 15037857)
Example:

If I write text like this and then make a line break in the text, I can.

It breaks and should look like this. It DOES once you click the perma link and the post opens in it's own page.

However, on the main page it would look like this:


If I write text like this and then make a line break in the text, I can.
It breaks and should look like this. It DOES once you click the perma link and the post opens [+]...

sounds like template problem, so for the fix and solution won't be universal.

go to your wp-content/themes/whatveryourthemeis

then compare code on your single.php to the other files page.php and index.php and match, your main index is bunching everything it sounds like

fris 11-11-2008 01:50 PM

Hit me up DWB i will take a look for you.

icq: 704-299

Fat Panda 11-11-2008 01:52 PM

are you using an excerpt call instead of content

Super Negro 11-11-2008 01:57 PM

find the_excerpt();
and replace with
the_content();

DWB 11-12-2008 02:17 AM

Thanks guys, I'm back on this today.

Fris, if I fail, and I may... I'll hit you up. Thanks!

DWB 11-12-2008 03:13 AM

So here it is... but as I play with it I can't get it to work. I'm messing something up.

</p>
<?php
the_content('...read the rest of this entry&raquo;');
?>

<p>

</p>
<?php
}else{
?>
<p>
<?php the_excerpt_main(140, '<p><img></p>', 'none', true, "[+]", true, 1, false);?>
</p>
<?php
}
?>

Antonio 11-12-2008 03:34 AM

Quote:

Originally Posted by Super Negro (Post 15038228)
find the_excerpt();
and replace with
the_content();


^^^ this is your solution!

what theme are you using? find the index.php file of the THEME and edit it:

FTP to your site, navigate to wp-content/themes/THE-NAME-OF-THE_THEME, download the index.php, make a back up copy, find the_excerpt() and replace with the_content()
or you can have arguments like the_content(__('(more...)'));

Antonio 11-12-2008 03:37 AM

Quote:

Originally Posted by DirtyWhiteBoy (Post 15041626)
</p>
<?php
the_content('...read the rest of this entry&raquo;');
?>

<p>

</p>
<?php
}else{
?>
<p>
the_content('...read the rest of this entry&raquo;');
</p>
<?php
}
?>


this should work if you haven't messed it up

DWB 11-12-2008 04:58 AM

Quote:

Originally Posted by Antonio (Post 15041648)
^^^ this is your solution!

what theme are you using? find the index.php file of the THEME and edit it:

FTP to your site, navigate to wp-content/themes/THE-NAME-OF-THE_THEME, download the index.php, make a back up copy, find the_excerpt() and replace with the_content()
or you can have arguments like the_content(__('(more...)'));

When I do that, it totally removes the post.

Hmmmm. This theme has a lot of extra files on it. One of them is theme functions had has a small book written about the excerpt.

fris 11-12-2008 05:47 AM

fixed :)

DWB 11-12-2008 10:32 AM

Fris took care of it. Thanks for everyones help.

2012 11-12-2008 10:38 AM

post the index.php from the theme [ oops ] forget itttttttttttttttttt

HorseShit 11-12-2008 11:27 AM

wordpress ninjas

DWB 11-12-2008 12:07 PM

Quote:

Originally Posted by jdavis (Post 15043226)
wordpress ninjas

Yup.

Fris went in there and threw down on them.


All times are GMT -7. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123