Lasse
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to combine author- & category-tags?Sorry to bother you, I found out what was wrong, and this string seems to work:
<?php c2c_get_recent_posts(5,”- %post_URL%
“, “2”, “date”, “DESC”, “0”, “m/d/Y”, “1”); ?>
..but I’ve got another problem with the substitution tags. I want to display the same amount of content that is on the front page, that is, everything before the <–more>-tag, but the %post_content% lists (of course) the whole post, and the %post_excerpt% doesn’t list enough of the post!
Are there an easy fix for this?Forum: Fixing WordPress
In reply to: How to combine author- & category-tags?Thanks Scott. I’ve installed it and just tried it out with the following:
<?php c2c_get_recent_posts(“5”, “- %post_date%: %post_URL%
by: %post_author_posts%
%post_excerpt_short%
“, “2”, “”, “”, “”, “1”, “”); ?>
Where “2” = category and “1” = author, but I get the following error message:
#
Database error: [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 ‘ 5’ at line 1]
SELECT DISTINCT * FROM wp1_posts LEFT JOIN wp1_post2cat ON (wp1_posts.ID = wp1_post2cat.post_id) WHERE wp1_posts.post_date <= ‘2004-09-26 17:40:04’ AND wp1_posts.post_status = ‘publish’ AND wp1_posts.post_password = ” AND ( wp1_post2cat.category_id = ‘2’ ) GROUP BY wp1_posts.ID ORDER BY wp1_posts.post_ DESC LIMIT , 5
#
Regarding the permalinks, I could probably just use static directories and an index.php for each author (ugly, but will probably work).
(if you want me to post this as a comment over av c2c instead of there just let me know)
Lasse.