go41

Re: Show full post in featured :: Reply by Joern

von Joern am 13. Apr. 2010 | Keine Kommentare

in index.php some lines under div id featured you have:

<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
This line of code gives you the title of this post. You have a ‚general‘ headline ‚…Thought of The Day‘ so you could show this content below ‚Thought of The Day‘ and above the title and date what you see now only.

So add the_content above div class info like this:

<div class="feat-cont"><?php the_content(); ?></div>
<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
This should show the content of this short entry. You should keep these posts short and do not insert pictures, as they might not fit..

As soon you get content in there we might have to adjust some styling: font-size, size of the section etc. I need some content there to do this and can use the new class .feat-cont for that.
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 5 weitere Ergebnisse dieses Threads:

Show full post in featured

13. Apr. 2010 (von: kinyofu)

Hi,I would now like to show the actual post in the feature section (instead of just date and number of comments). It actually will be a short post. What should I do? Maybe I need to alter section all-together?? Humm....Kinyofuwww.empoweringwomenslives.com…

Re: Show full post in featured :: Reply by kinyofu

13. Apr. 2010 (von: kinyofu)

You are brilliant. Is there a way I can add to the date/comment hyperlink a "click here to comment"? And also to the browse category sections, since the comments don't show up on the browse category post page?Thanks much,Kinyofu Weiterlesen…

Re: Show full post in featured :: Reply by Joern

13. Apr. 2010 (von: Joern)

all this comment stuff is generated by comments.php, loaded normally only in single.php like this:Code:<div id="comments">   <?php comments_template(); ?>   </div>Put this under the_comment you just added and see how it comes out.. (don't know, might not fit...)____________________you find me on…

Re: Show full post in featured :: Reply by kinyofu

14. Apr. 2010 (von: kinyofu)

The result is that my quote appeared under the social bookmarks on the post page. (I deleted text). I would like to see it on first page right under the feature post AND under each of the category post pages.…

Re: Show full post in featured :: Reply by Joern

14. Apr. 2010 (von: Joern)

The line <?php comments_template(); ?> loads the comments input field plus all comments of the according post. (normally only in single.php)I wanted to say put this line in your index.php in the featured query under the line with <?php the_content();…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: