mystrique
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Unordered list item indent problemHmmm….
Now I know why is this thing happens.
It is because of the text-align: justify!After adding the “text-align: left”, problem solved. Yeah!
Forum: Plugins
In reply to: Simple feedback form on each post, email to authorHi katie1,
I used the comment form as the feedback form.
I disabled the comment display. ??All the author will received the feedback to their email since I enable the comment notification.
Thats all. ??
Forum: Plugins
In reply to: Simple feedback form on each post, email to authorNevermind.
I have figured an alternative way for this.
Regards,
Forum: Plugins
In reply to: Display ID of post without going through the LoopCool…
Thank you Orin, Thank you Kafkaesqui… ??
Forum: Plugins
In reply to: Display ID of post without going through the LoopThank you Orin for your prompt reply.
Here is the changes that I made.
I duplicate the single_post_title() function and rename it as single_post_id() plus the changes as you suggested. I pasted the modified function below.
To call the function; <?php single_post_id(); ?>
Problem is there were nothing being displayed. Can you please advise on what should I do?
About the filter, I am not sure which part need to be deleted, is it the one in italic below?
Kindly advise.
Thanks,
[Modified function]
function single_post_id($prefix = ”, $display = true) {
global $wpdb;
$p = get_query_var(‘p’);
$name = get_query_var(‘name’);if ( intval($p) || ” != $name ) {
if ( !$p )
$p = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_ID = ‘$id’“);
$post = & get_post($p);
$title = $post->post_title;
$title = apply_filters(‘single_post_id’, $title);
if ( $display )
echo $prefix.strip_tags($title);
else
return strip_tags($title);
}
}