• I have installed a headline image plugin,
    it got a function:<?php echo ImageHeadline_render( ‘XXXX’… ?>
    XXXX is the word that you want to convert to image.

    If I want to show category description, I can put code:<?php echo category_description(); ?> to my themes.

    My question is how to convert <b><?php echo category_description(); ?></b> into <?php ImageHeadline_render(‘XXXX’) ?> function.
    How to make <?php echo category_description(); ?> become a pure txt word.

    Sorry I’m not good at English~and I’m not good at php code..^^

    Thanks for your help and welcome to my blog: http://dwl.no-ip.org/ssblog/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Try this:

    <?php ImageHeadline_render(category_description()); ?>

    Thread Starter bluesaturn

    (@bluesaturn)

    It doesn’t work.

    The actually format is :<?php echo ImageHeadline_render( ‘words’,’format’ ?>!

    how can i convert
    <?php echo category_description(); ?> into that txt words?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Add “echo” to the line then. You left that out of your initial post.

    <?php echo ImageHeadline_render(category_description()); ?>

    I don’t know what “format” you’re talking about would be, however.

    Thread Starter bluesaturn

    (@bluesaturn)

    sorry for misunderstanding,
    please refer to the following link.

    http://www.coldforged.org/image-headlines-plugin-for-wordpress-15/

    Thanks for ur help~….^^

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I guess my point is not getting across here. This is not complicated. Let me try again…

    how can i convert
    <?php echo category_description(); ?> into that txt words?

    Remove the “echo” and just use:
    category_description()
    in place of wherever you need to put the:
    'words'

    Do you see it now?

    If the command was Do_Something(‘words’); and you did Do_Something(category_description()); then that would work perfectly.

    Thread Starter bluesaturn

    (@bluesaturn)

    a~
    thank you thank you thank you ~
    I have resolved this question!
    Thanks for your help…^^

    I forget to delete ….>_<;

    I can’t make <?php echo category_description(); ?> show up at all. It just gives me empty space.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to convert <?php echo category_description(); ?> to pure txt word?’ is closed to new replies.