• Resolved cbang

    (@cbang)


    I installed my wordpress on /blog of my site and i’m trying to get an excerpt of the most recent post onto my index.php. When i add the code “<!–more–>” to my post , not only does it show the excerpt on my index.php but it also shows up as an excerpt on my blog page. I’ve been looking around for a fix for this, but i cant seem to find it. Is there a way to change this? or am i out of luck.

Viewing 9 replies - 1 through 9 (of 9 total)
  • kelvinmedina

    (@kelvinmedina)

    Try the Evermore plug-in, it automatically show “Continue Reading”.

    Thread Starter cbang

    (@cbang)

    well the thing is on /blog/ i want it to show the full post but on the root of my site where my home page is i want to show the excerpt of the most recent post. I know theres a way, but everythign i’ve tried seem to not work.

    so the index.php is not WP? You are just requiring WP and using a loop?

    Change the_content to the_excerpt in the code of your loop on non-WP site

    Thread Starter cbang

    (@cbang)

    Nope the index.php on my site is my home page and wordpress is located at /blog/. i am not using a Loop, would i need a loop if im just showing one post?

    I think I had it confused…. you want an excerpt on your main page of your WP install, and full post on the single view, is that correct?

    Do you have a static page set up as yourhome page?

    Thread Starter cbang

    (@cbang)

    no no, i want a full view of my post on my wp isntall, located in “/httpdocs/blog/” and i want an excerpt of my most recent post in my index.php located at “/httpdocs/index.php” if that makes it a little clearer.

    yup it does! I was right the first time around! lol. Do you currently have anything on your index.php? If so, how are you showing the post?

    Here’s a tutorial I like:
    https://www.corvidworks.com/articles/wordpress-content-on-other-pages

    tells you how to display WP posts outside of WP. Should work perfectly for you. Calling the_excerpt in the loop on your index.php will only display an excerpt, without you needing to worry about more tags or anything

    Thread Starter cbang

    (@cbang)

    thanks alot! i actually got it to fix, forgot to reply to you guys =\ this thread can be closed now ??

    OK, glad you got it! Except, you are the one who needs to mark the thread resolved!

    Dropdown over on the right

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘excerpts’ is closed to new replies.