ulitka
Forum Replies Created
-
Forum: Themes and Templates
In reply to: how to include any script output into WP_tag as a parameter?Thank you, Kafka!
It works great.
I’ll try to customize function get_archives()
Are you talking about this code (from /wp-includes/template-functions-general.php)?
———————
/* link navigation hack by Orien http://icecode.com/ */
function get_archives_link($url, $text, $format = ‘html’, $before = ”, $after = ”) {
$text = wptexturize($text);
$title_text = wp_specialchars($text, 1);if (‘link’ == $format) {
return “\t<link rel=’archives’ title=’$title_text’ href=’$url’ />\n”;
} elseif (‘option’ == $format) {
return “\t<option value=’$url’>$before $text $after</option>\n”;
} elseif (‘html’ == $format) {
return “\tForum: Themes and Templates
In reply to: how to include any script output into WP_tag as a parameter?I am triyng to use ‘witty text’ rundomizer plugin like this:
<?php get_archives(‘postbypost’,’5′,’html’,witty(),'<br><br>’,”); ?>
but it works only for the first post from five. How to do it for all fives?Forum: Themes and Templates
In reply to: how to include any script output into WP_tag as a parameter?Thank you Kafka!
It works great, but only for the file contents, not for the script output.
Actually i want to have a random quote as ‘before’ parameter. Could you please help me with this?