2011-03-02, 08:53:13
(This post was last modified: 2011-03-02, 08:57:21 by barabangel.)
Hi, I never used news manager but I think I can help you.
I did not make a plugin. I just modified all of my files
Here is what I did. You can make it a function.
I modified my menu_data to include the content so just remove that.
Here is how you create the links echo "<a href=",$menu["url"],">", $menu["title"],"</a>
Let me try to clean up for what you need
I did not make a plugin. I just modified all of my files
Here is what I did. You can make it a function.
Code:
<?php get_page_content(); ?>
<?php
$page = return_page_slug();
if ($page == "index")
{
foreach(menu_data() as $menu)
{
if ($menu["menu_text"] != "Home")
{
echo "<br /><br />";
$pubdate = date('l F dS Y \a\t: h:i a',strtotime($menu["pub_date"]));
echo "<a href=",$menu["url"],">", $menu["title"],"</a><br />",$menu["content"],"<br />Posted on: ",$pubdate,"<br />";
}
}
}
?>
I modified my menu_data to include the content so just remove that.
Here is how you create the links echo "<a href=",$menu["url"],">", $menu["title"],"</a>
Let me try to clean up for what you need
Code:
<?php
foreach(menu_data() as $menu)
{
echo "<a href=",$menu["url"],">", $menu["title"],"</a><br /><br />";
}
?>