WordPress.org

Forums

Need Help - Directions say "Remove Code that prints to post page" (9 posts)

  1. geoffcalver
    Member
    Posted 1 year ago #

    Trying to use the "Event Page Plugin" to create an event page in which posts labeled as a events are used in an event format on the page.

    Instructions are:

    You'll need to create a new template file entitled "events.php" ** To do this copy your file entitled page.php and name it events.php. ** Place this code <?php /* Template Name: Events */ ?> on the first line of the file. ** Remove the code that prints the post to the page and replace it with this code: <?php tern_wp_events(); ?> ** Upload the new file to the server.

    I obviously get placing the first line of code, but I can't figure out which code is associated with the second line.

    Here's my page.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can anyone help me figure out where to place that second line?

    Thanks!

    Geoff

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    Can you paste and submit the full code into a pastebin.com and post the link to it here? see the Forum Rules for posting code and using the pastebin.

  3. geoffcalver
    Member
    Posted 1 year ago #

    Sorry about that! Haven't been on in at least a year and last time I was around posting code was cool.

    Here's the pastebin link:

    http://pastebin.com/dTwUuxgf

    Thanks for the help!

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    can you also put sidebar-secondary.php in a pastebin

  5. geoffcalver
    Member
    Posted 1 year ago #

    Here you go! Thanks again!

    http://pastebin.com/AxKBr6HB

  6. keesiemeijer
    moderator
    Posted 1 year ago #

    Try it with this: http://pastebin.com/FGS6TaXm

    And put the code here where it says: <!-- put the your code here -->

  7. keesiemeijer
    moderator
    Posted 1 year ago #

    Sorry try it with this one: http://pastebin.com/hNd5Cmjq

    And put the code here where it says: <!-- put the your code here -->

    You don't have to do this with the second pastebin.

  8. geoffcalver
    Member
    Posted 1 year ago #

    Thank you! That looks like it worked. HUGE PROPS!

  9. keesiemeijer
    moderator
    Posted 1 year ago #

    You're welcome. Glad you got it resolved

Topic Closed

This topic has been closed to new replies.

About this Topic