Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/get linksbyname

This article needs some examples. --JohnWatson 04:31, 28 Sep 2004 (UTC)

There is a plugin that creates [lists of links], so does this make that obsolete? And is this for use only on the index.php or sidebar menu, etc. templates or can it be called from within a post? If so, does the user need a plugin like RunPHP or something to allow it to run, or does it just work?

Lorelle 01:13, 6 Feb 2005 (GMT)

I don't know the plugin, so can't answer questions about it. Template tags are just WP/PHP functions wrapped in <?php ?> tags, and no, you cannot use (i.e. run) PHP code within a post without help from something like the RunPHP plugin.
Kaf 06:25, 6 Feb 2005 (GMT)

But it will run from within a post with RunPHP? If yes, do we have a Codex page on how to run WordPress tags, like this and others, from within a post? Lorelle 16:29, 6 Feb 2005 (GMT)

The answer to that question is, possibly. A mention somewhere that you can't run PHP in a post without additional functionality may be helpful (with a link to RunPHP), but I don't think we want to get into the business of writing help files for plugins.
Kaf 19:05, 6 Feb 2005 (GMT)

No, but it sure isn't helpful when we have the power of such php capabilities to NOT be able to use them inside of a post. This is really frustrating for me, and if for me, it must be for others. I tried it with RunPHP on and it didn't work. But wp-lists did, it just doesn't have a simple list import function and it means double duty for lists within categories already in the database.

Just thinking out loud...no ability myself to problem solve this...yet, but the ability to have lists within the post itself is something lacking. Let's be sure and make it clear...wherever it needs to be states that PHP won't run from within a post. Where would that be?

Thanks. Lorelle 05:46, 7 Feb 2005 (GMT)

Did show_description change? I can show a description AND images, which according to this article isn't possible (Quote: Display the description (TRUE) or not (FALSE). Valid if show_images is FALSE or an image is not defined.). Dissurion