DevDmBootstrap3

Twitter Bootstrap 3 WordPress Starter Theme for Developers

Home Community Support Help with posts

This topic contains 1 reply, has 2 voices, and was last updated by  danny 4 years, 7 months ago.

  • Author
    Posts
  • #318

    wndystrm
    Participant

    Go to http://198.46.81.166/~mypape9

    When you click on the little graphic on top left of coupon. I am trying to create a new page (post) that shows a larger coupon and a map of the business and a print icon that opens a pop up window that they can print the coupon.

    I am not sure of the best way to go about this. Can anyone advise?

  • #319

    danny
    Keymaster

    This is the cool thing about WordPress. I can think of at least two or three “different” ways to go about this.

    If it were me I would do these things:

    I would use the custom post types plugin and create a new post type of coupon. I would add special fields for the map location/image as well as the coupon image itself and maybe some other information to use in a template file later.

    When the icon for a coupon was clicked I would use https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_%28action%29 wp_ajax to grab the post data and populate a modal window with the coupon information (map,print link,etc.).

    I would create a special template file for the post type of coupon for printing the coupon itself. This would have my unique print styles in it and all that kinda thing.

    This is just a bare bones overview. There are many details to consider of course but this is my take on it. Good Luck!

You must be logged in to reply to this topic.