Calling a function outside of WP
-
https://www.jamesvincent.co.uk/forum/
i need to call a function from one of my WP hacks. You will see on the left sidebar, that I am trying to get the Recent Posts/Links into the forum sidebar (taken from WP)
I’ve tried using:
<?php /home/jamesv/public_html/wordpress/c2c_get_recent_posts ($num_posts = 10,
$format = “%post_title%<br>”,
$categories = ”,
$orderby = ‘date’,
$order = ‘DESC’,
$offset = 5,
$authors = ”,
$include_passworded_posts = false); ?>and tried sticking the above function in a blank page called ‘recentposts.php’ and including it using:
<?php include (‘/home/jamesvincent/public_html/wordpress/wp-content/themes/vini/sidebar_recent.php’); ?>
but i get nothing, is this possible? i hope so.
- The topic ‘Calling a function outside of WP’ is closed to new replies.