• Hi,

    My blog runs at domain.com/blog

    I need to do two things..

    (a) Insert some introductory text from the latest post onto the home page of my site (domain.com/index.php) which is obviously outside the blog

    and

    (b) Insert the latest few posts titles for various categories into specific category pages, again outside the blog pages.

    eg

    Blog Category = Weather

    Last few post titles to be imported into my domain.com/weather.php page

    Can anyone help me, please?

    Thank you.

    Sal.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sallymoos

    (@sallymoos)

    btw, I’m using 2.1

    Sal.

    Sally,

    I hope you know how to write SQL queries and work with PHP variables. If you do, then you’re in luck – query the WP MySQL db you have setup and inside the wp-posts table will have your post info in it. After that, you’d have to build the link back to your post with PHP (help on building them here)

    Thread Starter sallymoos

    (@sallymoos)

    Hi justinratwebtek

    I have no idea on how to write SQL queries or work with PHP variables. 🙁

    Sorry!

    I’m really looking for some ‘drop’ in code or plugins. I found this one which lists categories AND excerpts of text and while its very good, doesn’t enable me to only select one category to list.

    Sal.

    Sally,

    I personally don’t know of any external plug’n’play scripts to help out with this option. Hopefully someone else will know more than I on this subject.

    You can include files from the wordpress directory outside of your install, using PHP. I did this just yesterday to apply the header and footer to some pages that I didn’t want to create in WP.

    However, you do need to use a little bit of PHP to do it. I doubt that you will find a plugin that would work outside the WordPress area. (Though hopefully i will be proved wrong.)

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