How to put code in loop with instruction for single.php?
Hi,
I want to add a code in each post after the first paragraph. After searching on the internet, I found instructions on how to do that. The isntructions, however, change it in the single.php file. I think I need to change this in the ATO section (right??): So I went to ATO / Centre columnd / Style & Edit centre column. And here is where I get stuck. The instructions state to replace Code:
<?php the_content(); ?> Here is the code I should replace the above with: Code:
<?php Ann. |
Hello???
Can't really anyone help me here? Ann. |
Look at ato->style & edit center area
|
Quote:
Look at Atahualpa Theme Options > Center Column > Style & edit CENTER COLUMN Then look at The Loop, search : Code:
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?> Code:
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?> |
I modified STB's version of Juggledad's excellent "JUGGLEDAD's multi column/custom query" template ( I think I got that provenance correct) to allow for entry of PHP code inside the page. A simple change to his template can insert can allow you to insert any PHP code (or a function) inside the loop.
I also used the STB version to modify the template to display posts in 'hunks of a week'. That template is here http://forum.bytesforall.com/showthread.php?t=16453 . The point is that if you want to modify how posts are displayed by adding additional commands to a template. THe STB/Juggledad templates are a great place to start. And by using a template, you don't have to worry about changes that happen with theme updates. (As long as you remember to put your templates in the theme's folder.) ...Rick... |
Glad I got the provenance right....
Interesting to note about the addition of the date-picking-thing in 3.6. The mod that I made to the template taught be quite a bit about the process. I am using that knowledge to even further mod the template for my own uses. My current version allows me to add custom functions and CSS to the output, with only minor mods to the index.php page. The mods allow me to add PHP code wherever I want within the loop, like it used to be in prior versions of ATA. And I have used additional custom fields for other purposes in my template. The whole thing is built modular, so it is easy to customize the pages. Which is a bit off-topic, but shows the versatility of the template process. For anyone that is interested in seeing the results of a 'weekly' extract of posts, they can go here: http://www.jerrypournelle.com/chaosmanor . Look at the choices under "View" and "Mail". ...Rick... |
All times are GMT -6. The time now is 02:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.