Article previous

From Photostand Wiki

Jump to: navigation, search
article_previous()

The article_previous function will return the exact path to the previous (less recent) article even if the Url Rewriting function is activated. This will only return the reference value, not the complete HTML tag.

Parameters

This function has no parameters.

Examples

Adding a link to the previous article

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

	<title>Article</title>

    </head>
    <body>

        <div>
            <a href="<?php echo article_previous(); ?>">Previous article</a>
        </div>

    </body>
</html>

Here, a simple HTML link pointing toward the previous article will appear.

Personal tools