wdalmut / zend-wordpress

The Zend Framework WordPress XMLRPC connector
http://pear.walterdalmut.com
MIT License
7 stars 2 forks source link

Is there any way to grab the permalink instead of using /blog/?p=postid? #1

Open wdalmut opened 12 years ago

miziomon commented 12 years ago

// http://codex.wordpress.org/Function_Reference/get_permalink <?php $permalink = get_permalink( $id ); ?>

if you know pemalink structure maybe you can read directly $post->post_name

Hope that was helpful

wdalmut commented 12 years ago

I have to get the permalink using XML-RPC and not directly inside WP.

I have to search this feature on XML-RPC methods.

Thank you so much anyway.

miziomon commented 12 years ago

You can add new XML-RPC method width this filter: add_filter( 'xmlrpc_methods', 'add_new_xmlrpc_methods' ); than in your custom method you can implement get_permalink( $id );

here more: http://josephscott.org/archives/2008/11/adding-xml-rpc-methods-to-wordpress/

wdalmut commented 12 years ago

Yeah, that's right.

This library is completely external of a Wordpress installation and I can't login and install some plugins.

Probably the default installation can't provide user defined permalinks. I have to create a plugin for support this feature and if someone wants have only to install it.

Actually I never check this task in detail and this is a ticked opened on binpress... There is any XML-RPC call for get user permalinks in a default Wordpress installation?