• so, i’m trying to use the image headlines plugin with the date instead of post titles. this is supposed to be possible together with the runphp plugin, but i can’t get it to work.

    i’m using 1.5. anyone have a suggestion?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you post in greater detail about what exactly you tried so far, and where the blog in question is?
    More people will be able to help you then.

    Thread Starter bop

    (@bop)

    sorry, i just figured that this would be a common enough problem that people would know what i was talking about. of course you’re right.

    the image headline plugin works like a dream on my post titles. it’s when i try to follow the instructions on coldforged.org (http://www.coldforged.org/image-headlines-plugin-for-wordpress-15/) for using the plugin elsewhere that things start to go wonky.

    what i did was install the runphp plugin and then replace <?php the_date(”,'<h2>’,'</h2>’); ?>
    with the line <?php echo ImageHeadline_render( ‘<?php the_date(”,'<h2>’,'</h2>’); ?>’,’font-file=server/path/to/font.ttf”&font_color=#fff’); ?> in index.php.

    on my public server, i didn’t get very far at all. i got the message:
    “Warning: Cannot modify header information – headers already sent by path/to/wp-content/plugins/runphp.php:47” on every single admin page as soon as i activated the runphp plugin.

    then, index.php showed this message: “Warning: Cannot modify header information – headers already sent by (output started atmy/server/path/wp-content/plugins/runphp.php:47) in my/server/path/wp-admin/admin.php on line 7

    when i tried it on my local server, i had a bit more luck. no errors appeared on the admin pages. on index.php i got the message: “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 8”. unfortunately, that’s all i got on the page.

    i’ve been over it again and again and i can’t figure it out. i was wondering if i could use the wp-exec plugin instead of runphp, but i’m not sure how i would do that.

    any suggestions would be greatly appreciated, thanks.

    RunPHP will work fine just as I described. The problem is the “the_date()” function is set to echo its output by default, not return it. In order to have it return the output to the calling function for processing by the Image Headlines plugin, you’ll need to call it like so:

    the_date('','<h2>','</h2>',false);

    Where the additional “false” tells WordPress not to echo the date. You should have better luck.

    By the way, the best way to get answers on my plugins is to post on my site in the post concerning the plugin… I have over 200 comments in my spelling checker plugin and over 140 comments on this plugin from people asking questions and getting answers. Just FYI.

    Thread Starter bop

    (@bop)

    thanks, i’ll try that this morning and update on my progress.

    i will remember to post on your site in the future if i have a problem but i’m not sure i’ll need to; your plugins run effortlessly. they’re great and tremendously useful.

    Thread Starter bop

    (@bop)

    well, i tried using the_date(”,'<h2>’,'</h2>’,false); but it didn’t really help so much. i am still getting:

    “Warning: Cannot modify header information – headers already sent by path/to/wp-content/plugins/runphp.php:47” on the admin pages, but at least no longer on index.php, and;

    “Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in server/path/to/index.php on line 6” on index.php.

    grr.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘image headlines plugin date’ is closed to new replies.