WordPress.org

Ready to get started?Download WordPress

Forums

Custom Path Function (2 posts)

  1. luke.a.danielson
    Member
    Posted 3 years ago #

    Hello WordPressers. Quandry for you:

    I'm looking to define a new function in functions.php so that I can call it everytime I need to call a specific path to a folder.

    So essentially, instead of using 'template_url' and then adding text to the relevant folder, I would just call the function.

    This:

    <?php bloginfo ('template_url'); ?>/library/media/images/example/sample.jpg

    Would become something like:

    <?php example_folder_path (); ?>/sample.jpg

    Know what I mean? Any ideas? Thanks in advance!

  2. luke.a.danielson
    Member
    Posted 3 years ago #

    Bump...

Topic Closed

This topic has been closed to new replies.

About this Topic