WordPress.org

Ready to get started?Download WordPress

Forums

Need help with incorporation wordpress into existing site. (8 posts)

  1. tech0925
    Member
    Posted 2 years ago #

    I was able to get the posts to show on my website as seen here:
    http://beckin.com/projects/articles2.php

    However, when you click on continue reading it jumps to wordpress instead of opening up in my website. How can I get this to open in my website templates instead of wordpress?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

  3. WebTechGlobal
    Member
    Posted 2 years ago #

    Yes your printing the url to your WordPress installation by using each posts permalink.

    It will take a bit more work to get what you want.

    Me personally. If I were you I would use jQuery so when the Continue Reading is clicked, the rest of the post just appears. No page changing. Your already displaying some of the post right, the rest of the post can easily be in a hidden div that jQuery controls.

    Not a hard one to do and it would look nice. Something like this, only the default starting with the div being hidden...

    http://jqueryui.com/demos/toggle/

  4. tech0925
    Member
    Posted 2 years ago #

    Hello WebTech,

    Would you be willing to help me with that? I don't mind giving you a couple of dollars for doing so. I looked at the link but don't understand.

  5. tech0925
    Member
    Posted 2 years ago #

    esmi,

    I used that link in the past to set what I have up. However, I don't see any instructions on how to make it open in the same website without going to WP.

  6. WebTechGlobal
    Member
    Posted 2 years ago #

    To open in your own site you could do this.

    Instead of the full post url to the WP installation, you have a url that has the post ID only...

    http://beckin.com/post.php?wppostid=324

    post.php would be a script that uses $_GET['wppostid'], if it is not set in the url it could display a notice and possibly a list of your latest posts.

    If the ID is set such as in my example. Your page would then query and get the entire post content using the post ID passed by url.

    Know much PHP?

    This approach above is fine. It may suit you. The approach I linked to is basically the idea that your entire post is on the page, you just don't see it all. User clicks then it appears without changing page.

    Also I don't think your allowed to discuss money on here ;)

  7. tech0925
    Member
    Posted 2 years ago #

    Oh, lol. Didn't know, sorry WP :) I will give this a try WebTech. Thanks, and I will let you know how it goes.

  8. WebTechGlobal
    Member
    Posted 2 years ago #

    Please do.

    You know you could have used WordPress as your main site.

    Look at http://www.webtechglobal.co.uk

    If your scroll down you will see I have an area of 9 of the latest blog posts and an area of 9 of the latest forum posts. The key thing is that the home page does not look like a blog. Also a WP theme can easily have a menu and header that looks like a standard site. That way you use WP to manage your main pages, tie the SEO together.

    Just something to consider in future unless you have good reason to avoid this approach.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.