WordPress.org

Ready to get started?Download WordPress

Forums

how to convert <?php echo category_description(); ?> to pure txt word? (8 posts)

  1. bluesaturn
    Member
    Posted 7 years ago #

    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/

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Try this:

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

  3. bluesaturn
    Member
    Posted 7 years ago #

    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?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  5. bluesaturn
    Member
    Posted 7 years ago #

    sorry for misunderstanding,
    please refer to the following link.

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

    Thanks for ur help~....^^

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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.

  7. bluesaturn
    Member
    Posted 7 years ago #

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

    I forget to delete ''....>_<;

  8. drew3000
    Member
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.