Quick question Kuroi,
I want to use this your mod to create sideboxes that pull in WordPress content. I found this link http://www.corvidworks.com/articles/...on-other-pages which explains how to do it, and it seems fairly straight forward. Where I need a nudge in the right direction is where in your contribution would I place this code... Would you be so kind as to take a look at what I plan to do and grade my homework as it were?? (Pretty please??!)
I was planning on making the changes to the includes/languages/english/html_includes/define_editable_sidebox1_content.php as follows:
PHP Code:
<p>This text is located in a file in your english/html_includes/ folder</code></p>
<p>It is intended to be edited via the Define Pages Editor in Admin > Tools, though you can also edit it directly if you prefer.</p>
<p>And don't forget to always backup the files in this folder.</p>
<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require('./blog/wp-load.php');
query_posts('showposts=3');
?>
<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>
Is this the right way to execute this?? or would I add this code elsewhere in your module??
Bookmarks