Log in

View Full Version : PLZ help - Wordpress plugin



queerfm
08-02-2009, 08:01 AM
Hi I have looked everywhere but can find out how to do the following.

What they require is the following information
site name
site URL
post title
post body
post keywords
post writtenby
Post URL Link

the API to the site i need to send the data to said that it needs to either be by using the post function or by the following

http://www.example.com/?site=[Name URL]&sitename=[Sitename]&posttitle=[Post Title]&postbody[Post Body]&keywords=[Keywords]&writtenby=[WrittenBy]&posturl=[Link to post]

If you can help with how i would get it so that when i publish a story or post in wordpress it sends this information to them that would be great.

I understand what they are asking for but I don't know how to make a plugin for wordpress that would do this.
Thanks
Russell

TheJoshMan
08-03-2009, 08:46 PM
I have a WordPress plugin that does exactly that if you are interested in using one that's already made versus making your own...

It's called SexyBookmarks and can be found here: http://sexybookmarks.net

If you would rather do it on your own, WordPress plugins are opensource and can be modified at will, so just reverse-engineer one to get the idea...

I'll give you some basic pointers though...


To get the URL of a WordPress post, simply use the following:

<?php echo get_permalink(); ?>

To get the title of a WordPress post, simply use this:

<?php echo get_the_title(); ?>

The site name can be echoed using:

<?php echo get_bloginfo('name'); ?>

You can get post content using:

<?php echo get_the_content(); ?>


There are a host of other predefined functions built into WordPress to make your life much easier, and finding them is as simple as searching the codex on http://wordpress.org

Good Luck!

queerfm
08-04-2009, 04:04 PM
I Thank you for your support, I have sent you a PM message, I think you will be interested...

TheJoshMan
08-05-2009, 12:52 PM
Hmm, I never got a PM from you...

You can use the contact form on my site if you'd like:

http://sexybookmarks.net/contact-forms/contact-us