how can i find loop
-
i am using tempera theme and i want to find loop in this.
i want to insert a code after the loop.
i want to do this so that the parent page will contain excerpt of the chid page.
please help methankyou
-
Did you ever find the answer to this? I am looking for excerpts on pages too!
I’m not sure exactly what you are after, but here is some quick reference material for you, maybe something here will help: The Loop
Source for the Tempera Theme:
tempera/1.0.1.1/content/content-index.php
…and
tempera/1.0.1.1/content/content-page.php<?php the_content(); ?>appears on line 20.You can also ask theme questions by posting directly in the support forum for the Tempera theme if you like. That way the author is more likely to see it and respond to specific questions.
Hi and thanks for your reply ClaytonJames. I want to use the “read more” tag on some text on one of my pages. Not the homepage, nor my blog page. I have read that you need to insert some code somewhere within some mystical entity called “The Loop”, but I haven’t the foggiest idea of how to do this and can’t find anything quite resembling the The Loop within my Tempera theme.
Any ideas?
I have read that you need to insert some code somewhere within some mystical entity called “The Loop”, but I haven’t the foggiest idea of how to do this and can’t find anything quite resembling the The Loop within my Tempera theme.
The first link I posted will explain a little bit about the loop and how to recognize it when you see it in your theme files.
The second link I posted shows you the contents of the ‘content-index.php’ file for the tempera theme, where you can identify the start of the loop using the information found in the first link. You have a copy of that file in your tempera theme folder.
The third link shows the contents of the ‘content-page.php ‘ file, (which you also have a copy of in your tempera theme folder) where on line 20, you can find the code that displays the content:
<?php the_content(); ?>rather than what you want to do, which is display the excerpt:<?php the_excerpt(); ?>Reference: the_excerpt() vs. the_content()
Any ideas?
Try posting directly in the support forum for the Tempera theme. That way the author is more likely to see it and respond to specific questions. No one knows the theme better than the author Here is the link to post directly to the tempera theme support forum: https://ww.wp.xz.cn/support/theme/tempera
Thank you for your help so far. I am having a play around with it and trying to understand it a bit more. So far I’ve achieved a “Continue Reading” button which refreshes the page but doesn’t display the remaining text.
Ideally I’d like just this one section to have a read more tag that drops the remaining text down, rather than leading away to another page. Is that possible you think?
Found the perfect Plugin solution in Collapse-O-Matic!
http://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/#tag
Just what a simpleton like me needs haha. Thanks again for your help
The topic ‘how can i find loop’ is closed to new replies.