WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Shortcode for grid view, etc? (8 posts)

  1. vectyr
    Member
    Posted 3 years ago #

    Is there any shortcode to display the grid view, etc on a page?

  2. vectyr
    Member
    Posted 3 years ago #

    Nevermind, I get it now.

  3. Donald Gilbert
    Member
    Posted 3 years ago #

    Was there a shortcode or not?

  4. mozity
    Member
    Posted 3 years ago #

    I'd like to know too. Would you mind sharing how to got the grid view to work?

  5. prrk47002
    Member
    Posted 3 years ago #

    Here is what I did, which worked within the twentyten theme framework.

    1) Create a page called Calendar with a slug of calendar-redirect
    The page contents can be blank, or you can put a message that will pop up in case something goes wrong.

    2) Create a custom page template called page-calendar-redirect.php
    It's contents are as follows. Change the wp_dir variable if wordpress is not installed in /wordpress

    <?php
    global $_SERVER;
    $proto = empty($_SERVER['HTTPS']) ? "http" : "https";
    $host = $_SERVER['SERVER_NAME'];
    $wp_dir= "wordpress";
    header("Location: $proto://$host/$wp_dir/category/events/");
    ?>

    3) Upload the custom template to your wp_content/themes/theme-name directory.

    Now, when I click on the "Calendar" page, it automatically (and quicky) redirects to the grid layout

  6. prrk47002
    Member
    Posted 3 years ago #

    Oh yea, I'm running WordPress 3.01

  7. oraclesoftruth
    Member
    Posted 3 years ago #

    Is there a shortcode for this plugin? I'm not using the Twenty 10 Theme.

  8. oraclesoftruth
    Member
    Posted 3 years ago #

    I want to try using this code example. But my wordpress installation is located in the root of my site. What do I use as the wp_dir variable for my site since it is located in the root.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic