Commercial & Corporate Development

Hi Webdwall,I got the code from somewhere off the net so not sure what caller_get_posts’ => 1 is for, but I’ve seen some comments elsewhere saying you should use ignore_sticky_posts=1 in place of caller_get_posts. So I’ll change that. That you for the corrected code, I’ll give it a try and get back. – Tracy Shorrock Jun 6 ’13 at 7:52

Your code is working, however no matter where I put the shortcode [boats] on a WP page it always displays above the rest of the content, just under the Page title. Any ideas how to stop it doing this? I can’t find anything obvious in the code. Thanks, Tracy – Tracy Shorrock Jul 9 ’13 at 4:37

Sorry for replying so late.. Actually the method which processes any shortocode has to ‘return’ the html rather than directly ‘echoing’ it. So You can either use object buffering or take the entire html in a string value and return it. – webdwall Jul 9 ’13 at 17:46

Leave a Reply

Your email address will not be published.