WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Numbering Your Entries (34 posts)

  1. Chad_Coleman
    Member
    Posted 6 years ago #

    I'm trying to find a way to list my home page entries without using the OL tag. I first saw this accomplished here: http://blog.jalenack.com/

    His latest post has a 1. and so on. Any ideas as to what I can do to accomplish this?

    thanks.

  2. Chad_Coleman
    Member
    Posted 6 years ago #

    I woulda figgured this would be a minor tag that I could use. Nobody has any ideas?

  3. ccoupe
    Member
    Posted 6 years ago #

    It's a theme thing and oot so much a wordpress thing. Ask the author of the site you admire.

  4. Chad_Coleman
    Member
    Posted 6 years ago #

    I attempted to. But his contact page stated that he'll be offline for 6 months.

  5. JamesICT
    Member
    Posted 6 years ago #

    Not exactly the same as the site you highlighted but you can add an id number to each post.

    More details here...

    http://codex.wordpress.org/Template_Tags/the_ID

  6. Chad_Coleman
    Member
    Posted 6 years ago #

    yea. i need to use the number in order to style it. so the ID tag is out on this one.

  7. whooami
    Member
    Posted 6 years ago #


  8. Root
    Member
    Posted 6 years ago #

    He must have edited the loop I would think. He has just added a count.

  9. whooami
    Member
    Posted 6 years ago #

    Only a smidge tougher than what I oiginally thought it would be:

    http://you-get.onewish.org.uk/

    Click the previous posts at the bottom if you want to see it carry over .. its not set up for the archives page.

  10. whooami
    Member
    Posted 6 years ago #

    Root :)

    and yes, thats clearly what he did, since it doesnt show up on the single post views. hint-hint.

    I take paypal, chad. share the wealth.

  11. Root
    Member
    Posted 6 years ago #

    OT @whooami could you please look at this thread and comment appropriately. I seem to have gone off the rails somewhere. :)

  12. whooami
    Member
    Posted 6 years ago #

    are you high?? YOU are the css guru! Not me :)

    theres no way im touching that thread! :P

  13. Root
    Member
    Posted 6 years ago #

    Well I was hoping someone might subtly point out to the OP that he has had some pretty good advice. We just need to get him to read it.

  14. whooami
    Member
    Posted 6 years ago #

    his site wont even load for me .. probably for the best.

  15. Root
    Member
    Posted 6 years ago #

    :)

  16. whooami
    Member
    Posted 6 years ago #

    meh, I replied.

  17. Chad_Coleman
    Member
    Posted 6 years ago #

    Whooami - thanks. But in the end, I didn't really get any help from you.

  18. whooami
    Member
    Posted 6 years ago #

    no you didnt. other than a confirmation that's its doable. PHP is a wonderful language.

  19. Chad_Coleman
    Member
    Posted 6 years ago #

    PHP is a great language. One that I don't know to extent. I really hate to bother you, but could you provide a reference, or somewhere that I can learn a approach?

    It would be helpful and appreciated.

  20. Edit: Scratch that. It will only work for the first page. The Jalenack page is counting some other way probably using the_ID() to keep the count.

    - - - - - - - -

    Chad try this:

    In your theme locate the

    <a href= ... <?php the_title(); ?>

    In the default theme that line starts off with

    <h2><a href="<?php the_pemalink() ?>

    Right after the <h2> insert

    <?php echo $p_count+1 . ". "; ?>

    Right before the line that reads

    <?php endwhile; ?>

    Insert above that line this

    <?php $p_count = $p_count + 1; ?>

    This will print a 1. , 2. , 3. , etc. inside of the h2 but before the link to the post.

    Hope that helps.

  21. Chad_Coleman
    Member
    Posted 6 years ago #

    Hey, thanks friend. Actually, all I need is to count on the first page, so this just might do it. I'll let you know if it works, and show what I was doing.

  22. Chad_Coleman
    Member
    Posted 6 years ago #

    Alright, you can see what I did, by going to this site, and looking at the box of "Today's Posts".

    The client wanted "Today's Posts" to show the latest 10 posts, with the first 5 on the left column, etc.

    But this was tuff, without being able to add a individual class to each of those titles. I used the code you gave me, added the word "today" in front of the post number, to give me today1, today2 etc.

    Then I was able to apply some ALA CSS Swag list tricks, and finally achieve the goal.

    So, thanks alot for your help, jdembowski.

    And as for whaoomi... maybe you should stick to the site critique forum. Cos if you're gonna come to the "how-to and help" forum, and patronize folks asking for help, the place is better off without you.

    It's a good thing the folks who made WordPress don't run in your crowd.

  23. Root
    Member
    Posted 6 years ago #

    Er did I just hear the word *client* ?

  24. ccoupe
    Member
    Posted 6 years ago #

    You would hear that word if you really want that kind of client.

  25. whooami
    Member
    Posted 6 years ago #

    yes you did root -- hence my response. :)

    Chad,

    I wasnt being patronizing in the least. I am merely hesitant to assist those that are doing paid gigs.

  26. Chad_Coleman
    Member
    Posted 6 years ago #

    root - whats the beef?

    ccoupe - i don't follow.

    whooami - "neener neener neener" isn't patronizing? and you didn't even know it was a paid gig, until it was all said and done.

    I don't see what the beef is as far as getting paid for the many hours I spend building a client a custom WP theme.

  27. whooami
    Member
    Posted 6 years ago #

    I posted that to MY site -- did it ever occur to you that other ppl actually read that as well :)

    Had I wanted to patronize YOU, I would have done it here -- and it wouldnt have been the first time I would have been called on it.

    As for knowing -- I didnt "KNOW" for a fact, no. That said, I did see your other post regarding the blog for that military thing. Your profile indicates you are clearly a designer. etc.. etc..etc..

    I'm not fricken blind.

    In other words, I "knew".

    Lastly, no one takes issue with someone making money. Thats the pat reply "why cant I make money.." etc.. YOU CAN.

    What I dont help with is ppl that want to make money by using someone else's brain power.

    Look at it like this:

    You are doing a kitchen remodeling. You are the cabinet builder. In the course of doing the cabinets, you realize that there is plumbing work to be done. Do YOU really think a plumber is going to tell you how to do plumbing??? NO! He's going to say -- hey, Im a plumber, Ill help but I charge.

    You suggest that you are entitled to make money off your talents -- and I accept that. I'll also suggest that it goes the same for those of us here.

    What possible benefit is there to me to give you code that you can use to make money? I help enough ppl on here, my ego doesnt suffer for lack of helping. I dont get a special avatar for posting.

    There is NOTHING unreasonable about expecting that someone, as I said above, share the wealth, if they expect help with a paid job. Rather than make a big deal out it in this thread.. I tossed out my offer. You sluffed it off (Thats YOUR choice), I moved on.

    THATS MY choice.

    meh. and for the record -- there are more than a handful of ppl on here that agree with that point of view.

  28. Chad_Coleman
    Member
    Posted 6 years ago #

    I understand the analogy, and I have no beef sending out money. Now, had jdembowski hinted at tipping his/her paypal after providing me with the code, I would be completely fine sending them 35 bucks for their trouble. It's no skin off my back, I pass it on to the client. I'm not a cheap skate. But now I guess that I need to state that I'm making money off your help, and then put that I'm willing to pay.

    There are many web support forums, where members don't mind sharing a bit of help to a pro web designer. This is the last place I expected it. The WP community has helped me learn alot over the past few years, and I'm not past sending out money.

    On a side note - because I've been helped by people here, I have no problem helping other people on here, and not expecting money from it.

    jdembowski - I am more than willing to pay you for you help. please let me know.

  29. Root
    Member
    Posted 6 years ago #

    Chad - I have no issue with you. But you would be surprised (or maybe you wouldn't) at the number of half assed designers who get paid work and dump the whole problem in stages - and often under different ids in this forum. As a rule of thumb if I was ever in the middle of a paid job and couldn't manage it I would email my friends lest my client reads this forum as well:) If I needed help here I would fess up straight off the bat that it was paid. Then I would hope that someone would help and in turn I would acquire an obligation to help them if they got jammed up. Or I would offer to pay straight away.

  30. Chad_Coleman
    Member
    Posted 6 years ago #

    Root - I completely understand and agree. My perspective was that if I can get some help on here, I don't mind returning the favor to someone else who needs help on here.

    I didn't even consider that because money was involved, there are new rules.

Topic Closed

This topic has been closed to new replies.

About this Topic