Hi,
I would like my users to have a place on the index of their blog where they could write a text or make a menu with a list of links to permalinks,
I mean some personalized content without accessing the templates.
That place would be somewhere in the sidebar.
Now, to my mind, the best way to do this, is to simply display the body of the very first entry of the blog.
There’s a function quite similar to this : weblog_title_list
So I based the code below on that function,
I removed all the unnecessary stuff and tried to make it displays the body.
Then I added the new function in acrchives.fns.php
The whole code is not displaying correctly here on the forum,
so I put the code in a txt file
And here’s the code I from my template :
<?php
$wtl['limit'] = "1";
$wtl['orderby'] = "oldest";
$wtl['weblog'] = "weblog";
?>
<?php weblog_OFE($wtl); ?>
But unfortunately that gives an error :
MySQL Error: 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1' at line 6
which I’m not likely able to fix unless I learn PHP.
Could someone help please ?
Thanks by advance.
