Forums

Excerpts (26 posts)

  1. moonshadow9990
    Member
    Posted 3 years ago #

    How to i get the excerpts to work. Now, all my blogs scroll down the page forever. I understood if I put in the excerpt, only the excerpt would show on my fornt paga. http://www.Dharma-Buddha.Com But this doesn't happen. the page still sprawls donw forever.

    Thanks somebody!

  2. stvwlf
    Member
    Posted 3 years ago #

    hi

    in /wp-content/themes/{themename}/index.php

    find the_content(' .... ')

    replace it with the_excerpt()

    (nothing in the parentheses in the_excerpt() )

  3. Shane G
    Member
    Posted 3 years ago #

  4. moonshadow9990
    Member
    Posted 3 years ago #

    In order to get the excerp to work, where do I put the, <?php the_excerpt(); ?> ??????

    It says to replace the, for the_content()

    Where do I find this?

    Thanks, I know nothing about WordPress? But I think I could do it if i only knew where???????

  5. stvwlf
    Member
    Posted 3 years ago #

    in /wp-content/themes/{themename}/index.php

  6. moonshadow9990
    Member
    Posted 3 years ago #

    I’m trying to go to:

    1. in /wp-content/themes/{themename}/index.php

    Then insert: <?php the_excerpt(); ?>

    I go to: wp-content/themes/{amazing grace}/index.php

    And open it: I open a window with the following:

    “Fatal error: Call to undefined function: get_header() in /mnt/w0311/d31/s19/b01c8227/www/wp-content/themes/amazing-grace/index.php on line 1”

    This is all hard wired. I can’t edit at all. How do I insert
    <?php the_excerpt(); ?> ?

  7. stvwlf
    Member
    Posted 3 years ago #

    Hi

    Sorry for not explaining further earlier. These are very basic procedures. But if this is the first time you are doing this then of course you would not know the process.

    1) the URL is /wp-content/themes/amazing-grace/index.php
    2) you are not supposed to go to the URL in your browser but to use an FTP program to download the file to your computer so you can open it in a text editor and change it. You don't need to display the file, you need to change it.

    If you don't have FTP set up and don't have a text editor, you can edit within WordPress. Go to the admin section of your site and click the button in the left column "Appearances". Under that you will see Editor. Click there and open index.php There you can follow the original instructions.

    It is a good idea to copy the original content of the file and save it in a file on your computer before making any changes, so that if you make an error you can revert back to the original state.

  8. moonshadow9990
    Member
    Posted 3 years ago #

    Don't have an FTP editor. How do I get something in the excerpt to click on, "Read More," so when I click on the blog it doesn't scroll out of sequence and open so that reader has to start fromm beginning?

    Also i understand SEO is hindered by all the extra text?

  9. stvwlf
    Member
    Posted 3 years ago #

    in your theme is a file called functions.php

    Open it in the online WP theme editor and paste in these lines of code BEFORE the last line (which is a closing PHP tag ?> )

    make sure this code is before that tag, and make sure you add nothing, not even a single blank space, after the closing tag in the file.

    function excerpt_ellipse($text) {
       return str_replace('[...]', ' <a href="'.get_permalink().'">Read more...</a>', $text); }
    add_filter('the_excerpt', 'excerpt_ellipse');

    This code replaces the [...] at the end of the excerpt with a "read more" clickable link.

    To deal with SEO concerns, install the All in One SEO Pack plugin, or a similar plugin. The main issue with SEO and WordPress is not to create duplicate content. The plugin, out of the box, keeps Google from indexing content as duplicate. The idea is its single post pages (and tag pages) that should be indexed, not category, archive pages etc. The plugin comes pre-configured that way.

  10. moonshadow9990
    Member
    Posted 3 years ago #

    here are the closing lines of themes/amazing-grace/function.php

    " }
    }
    }
    }
    echo ''.$after_widget;

    }

    ?>"

    I see nothing that looks like
    (which is a closing PHP tag ?> )

    Please give me more detal.

    Thanks

    doug

  11. moonshadow9990
    Member
    Posted 3 years ago #

    I knew it couldn't be right but I did it anyway.

    Now it doesn't work, that is =

    function excerpt_ellipse($text) {
    return str_replace('[...]', ' Read more...', $text); }
    add_filter('the_excerpt', 'excerpt_ellipse');
    ?>"

    May I please have some more detail.

    Thanks

    doug

  12. moonshadow9990
    Member
    Posted 3 years ago #

    How do I install a SEO plug in pack?

  13. stvwlf
    Member
    Posted 3 years ago #

    echo ''.$after_widget;

    }

    ?>"

    I see nothing that looks like
    (which is a closing PHP tag ?> )

    One line above where you wrote

    I see nothing that looks like
    (which is a closing PHP tag ?>

    is the closing PHP tag you said you didn't see
    ?>
    =====================================

    plugins: in the WP admin section, on the left one icon is for plugins - click it
    Then click the link beneath the Plugins button that says Add New.
    In the Search box, select Term and type in All in One SEO. Then click the Search button
    On the page that comes up, you will see All in One SEO Pack. At the extreme right is a button that says "Install". Click it, and follow any instructions that may appear.
    After the install you will find a new menu option at the bottom of the left column icons, under Settings. The plugin installs itself with default settings that are adequate for most users.
    One thing is, to set the Title, Description, and Keywords for the homepage, you have to enter these on the plugin's admin page - nowhere else will they be picked up.
    If you don't understand what Title, Meta-Description, and Meta-Keywords are, or the basics of SEO, you need to do some Google research - they are very basic to SEO optimization.

  14. moonshadow9990
    Member
    Posted 3 years ago #

    Pleaase go to my site: http://wwww.Dharma-Buddha.Com There is nothing to click on telling the viewer to click on: Read More, etc.

    Here is the pasted in function. if it's wrong, please correct:

    thanks

    doug

    [removed huge chunk of code - please use a pastebin]

  15. stvwlf
    Member
    Posted 3 years ago #

    the moderator deleted the code you posted. please post functions.php in a pastebin at http://wordpress.pastebin.ca/ and post the URL here

    most likely you inserted it incorrectly since those few lines of code have worked on many WordPress sites.

    while you are at it, paste your index.php file in a second pastebin

  16. moonshadow9990
    Member
    Posted 3 years ago #

    There's no way I can understand you. How much is it going to cost me to buy your technical services and get just a standard default WordPress blogger with everything working like in the book: WordPress for Dummies. That is to get the excerpt working with the SEO and RSS functional? Like it's supposed to be working but isn't. I realize the software is free, but this is really a scam to run me to all this trouble -- Just be honest and tell me how much you want up front.

    Mabe I'll bite on it and maybe not.

    Thanks

    doug

  17. stvwlf
    Member
    Posted 3 years ago #

    You run a site called Dharma-Buddha, and this is your attitude?

    I don't scam anyone about anything. I have simply been trying to help you, with no motive other than that. You know, sort of like, umm, DHARMA?

    Further, I choose not to work for pay for clients who hold attitudes like you have expressed here.

    If you want to hire someone, I suggest putting a listing on http://jobs.wordpress.net/

    I hope you find someone helpful - I mean that.

  18. moonshadow9990
    Member
    Posted 3 years ago #

    Why else should your WordPress not work -- right out of the box?

    Not only did the excerpt not work. But now I find out the RSS doesn't notify anyone of a new post. Why else wouldn't this work?

    And because you give terrible instructions, now you refuse to deal with me at all. And you talk of Dharma.

    What a rip off this is. Maybe someone else with the ability will answer my call for help.

    how do i get the RSS working?

  19. moonshadow9990
    Member
    Posted 3 years ago #

    Feel free to contact me by email or phone (541-201-0825).

    Why else would you post your phone? You're selling technical help!

    Amd when i call you on it, you refuse to deal with me.

    This wordpress is a scam! And you talk to me of Dharma!

    If there is anyone here honorable, how do I get the RSS working?

  20. moonshadow9990
    Member
    Posted 3 years ago #

    You're nothing but a scam artist and a crook. Why don't you just get it over with -- buy yourself a gun and hold up a Bank!

    If ther's anything honest about this WordPress, somebody tell me for free, how do I get the RSS working?

  21. Monkeyboy
    Member
    Posted 3 years ago #

    I'm going to come to the defence of stwlf here. He's been very patient. Why on earth are you calling him a scam artist and a crook?

  22. moonshadow9990
    Member
    Posted 3 years ago #

    Thank you for getting my site going.

    I apologize for all I said.

    Again, the site is miraculouslly working well. It must have been you. So again, i know it must have been you. Thanks again and again.

    Very best regards and good luck to you,

    doug

  23. stvwlf
    Member
    Posted 3 years ago #

    Hi

    I really didn't do anything to your site. What I see is the code I sent you earlier is now working exactly the way its supposed to.

    I'd appreciate it if you'd send me an email to the email address on my website. I have something I'd like to say to you, off this forum, by email. That would let me know your email address. I am not mad at you and what I have to say is positive. So if you feel so inclined please do so.

    I'm glad your site is working.

  24. cpein
    Member
    Posted 2 years ago #

    stvwlf,
    I came in here looking and sifting through answers for my problem of trying to get rid of the [...] at the end of my excerpts and replace with that <--read more--> thingie. I'm a fairly new experimenter of all this php stuff. I know CSS very well and that's it. I've also realized that this forum is something that others who actually KNOW more than I do FREELY and willingly participate in. I commend you on your attempts to advise on this topic and am thoroughly impressed with your PATIENCE. I'm not even sure WHAT is going on here with this 'Dharma' stuff, but I've never seen someone so rude and impatient as this person you're tyring to help for nothing.

    I'm still in search of the simplest answer possible for replacing those annoying [...] things at the end of my excerpts with links to "read more". Any quick links to this type of thing that you've already answered would be fantastic. :-)

    I'm using the Antahualpa theme and I swear I've seen some mention of this in the admin area, but I can't find it back!

  25. Samuel B
    moderator
    Posted 2 years ago #

    @ stvwlf
    Awesome job! Great example of how to keep your cool and not start a flame war.

  26. Samuel B
    moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.