Support » Plugin: The Events Calendar » [Plugin: The Events Calendar] Shortcode for grid view, etc?

  • Resolved vectyr


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

Viewing 7 replies - 1 through 7 (of 7 total)
  • vectyr


    Nevermind, I get it now.

    Was there a shortcode or not?

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

    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

    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

    Oh yea, I’m running WordPress 3.01

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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: The Events Calendar] Shortcode for grid view, etc?’ is closed to new replies.