Subscribe to my RSS Feed ..... Or if you prefer, Subscribe by Email

Working at Home on the Internet

Helping You Run an Internet Home Business



The Fix for (more) in Andreas04 2.0

New Here? You may want to Subscribe to my RSS feed for daily updates. Or if you prefer, Subscribe by Email Thanks for visiting!

idea.jpg

It took a couple hours yesterday, but I finally figured it out. As they say about hindsight, it’s 20-20. It was actually an easy fix to get the “more” function to work the way it is intended, as a lead in to the rest of a post after it is split.

It seems the problem is with the Andreas04 2.0 by Tara Aukerman Theme. I am not sure if it is recurring in any of the other Themes they have or not, but it should be addressed by them.

Here are the steps I took which were totally unnecessary: (so you don’t have to)

~~ Way back in the beginning when I was having this problem, I adapted by including the “more” function as an addition to the “comment” php. It worked but not well, it took people to comments causing them to have to scroll up to read the balance of the post.

~~ Since I have other WordPress Blogs with different Themes, I tested the “more” on them.  It worked fine on the 2 other instances of the same Version of WP. It showed “Read the rest of the post” where it should be. Telling me that the problem was most likely this Theme.

~~ I found the php that produces the desired “more” effect and tried copying it into the index php of the Andreas Theme.

~~ That didn’t work out too well, it split the post, but also gave duplicates of each post. I tried various positions within the index and got varying results. None of them any good.

~~ I blocked out the php in different places and got some really funny looking stuff, but I wasn’t laughing too hard by that point.

~~ Finally, I found the below php in the Main index and noticed it was the same as the one I was trying to copy into the index, except that the _content was blank. That’s what caused the missing “more” and the duplication. 

div class=”entry”

h2 a href=” ?php the_permalink() ? ” title=”Permalink” ?php the_title(); ? /a /h2
 
?php the_content(”); ?

The Fix was simple after that discovery, revelation, lightbulb over my head.

I blocked out the whole php that I copied and filled in the blank, where the ?php the_content(”):? is for the “more“. Just place whatever text you want to show between the ” in the statement. Now, it works like a Charm. The code is located right after the ?php have_post statement.

As I said about hindsight… It really was simple, I just had to find it.

NB: I had to remove the Brackets in the Statement in order for it to show properly


Related Posts:
  • How to Alphabetize Categories in Andreas04 2.0
  • Did you notice the Category List in the Sidebar? Yes, I have it in A...
  • Add Post Count to Categories in Andreas04 2.0
  • Once again I have tweaked the Adreas04 2.0 Theme. I didn't feel like wr...
  • Want to Go to The Dark Side?
  • Like? I've made so many changes around here from the original Andrea...

    Promote Your Home Business on the Featured Home Business Page... no charge, but no splogs allowed

    October 18th, 2006 at 01:28pm | Posted by Joe | Andreas04 Tweaks, Basics, Tips, WordPress | 1 reader remark | Print This Post

    25 businesses you can start and run from your home

    1 Reader Remark

    Trackbacks

    1. [...Working at Home on the Internet...]

    Sorry, the comment form is closed at this time.