{"id":806,"date":"2023-10-19T14:35:06","date_gmt":"2023-10-19T14:35:06","guid":{"rendered":"https:\/\/simplewpevents.com\/docs\/?post_type=ht_kb&#038;p=806"},"modified":"2023-12-29T12:33:47","modified_gmt":"2023-12-29T12:33:47","slug":"how-to-add-wp-event-widget-on-homepage-or-sidebar-using-shortcode-2","status":"publish","type":"ht_kb","link":"https:\/\/simplewpevents.com\/docs\/wpevents\/how-to-add-wp-event-widget-on-homepage-or-sidebar-using-shortcode-2\/","title":{"rendered":"How to display\/customize events on the archive page using shortcode?"},"content":{"rendered":"\n<p>Simple WP Events provides shortcodes to make this easy for you. All you need to do is to paste the shortcode into the archive page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-vivid-cyan-blue-color has-text-color\">Shortcode<\/h2>\n\n\n\n<p class=\"has-text-align-center\"><code>\r\n        <div class=\"wpe-event wpe-archive-shortcode\">\r\n            <div class=\"wpe-full-wrap  \">\r\n                <div class=\"wpevents-container\">\r\n\t\t\t\t\t        <div class=\"wpe-form-holder\">\r\n            <div class=\"wpe-subscribe-form-container\">\r\n                <form method=\"post\" action=\"https:\/\/simplewpevents.com\/docs\/wp-admin\/admin-post.php\" novalidate class=\"wpe-subscribe-form\" id=\"wpe-subscribe-form\" autocomplete=\"off\">\r\n                    <div class=\"wpe-col-full wpe-field\">\r\n                        <div class=\"wpe-above-error-field\">\r\n                            <span class=\"wpe-error-exclamation\">!<\/span> There was some problem with your submission. Please review the fields below\r\n                        <\/div>\r\n                    <\/div>\r\n                    <input type=\"hidden\" id=\"wpe_subscribe_form\" name=\"wpe_subscribe_form\" value=\"d71fcaee8c\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/docs\/wp-json\/wp\/v2\/ht-kb\/806\" \/>                        <h2 class=\"wpe-h2\">Subscribe With Us<\/h2>\r\n\t                                            <p class=\"wpe-form-description\">There are currently no seminars scheduled, but please fill out the form below and we'll be sure to notify you of upcoming seminars.<\/p>\r\n\t                                        <div class=\"wpe-name-box wpe-col-2\">\r\n                        <div class=\"wpe-form-control\">\r\n                                                        <input type=\"text\" name=\"wpe_first_name\" id=\"wpe_firstname\" placeholder=\"First Name*\" required>\r\n                            <small>This field is required<\/small>\r\n                        <\/div>\r\n                        <div class=\"wpe-form-control\">\r\n                                                        <input type=\"text\" name=\"wpe_last_name\" id=\"wpe_lastname\" placeholder=\"Last Name*\" required>\r\n                            <small>This field is required<\/small>\r\n                        <\/div>\r\n                    <\/div>\r\n                    <div class=\"wpe-col-2\">\r\n                                                <div class=\"wpe-form-control\">\r\n                                                        <input type=\"email\" name=\"wpe_email\" id=\"wpe_email\" placeholder=\"Email *\"required>\r\n                            <small>This field is required.<\/small>\r\n                            <span class=\"wpe-email-error-class\">Please enter a valid email address.<\/span>\r\n                        <\/div>\r\n                                            <\/div>\r\n                    <div class=\"wpe-col-2\">\r\n                                                                    <\/div>\r\n                                       <input type=\"hidden\" name=\"action\" value=\"subscribe_form\">\r\n                    <input type=\"hidden\" name=\"wpe_event_category\" value=\"\">\r\n                                            <span class=\"g-recaptcha\">Captcha not found.<\/span>\r\n                                            <button id=\"wpe-button\" class=\"button wpe-button\">Subscribe<\/button>\r\n                    <div class=\"wpe-button-loader\"><\/div>\r\n                <\/form>\r\n            <\/div>\r\n        <\/div>\r\n                <div class=\"thankyou-popup\" style=\"display:none;\">\r\n            <div class=\"t-y-inner\">\r\n\t\t\t\t<span class=\"close-btn\"><\/span>\r\n\t\t\t\t<p>ThankYou For Subscribing.<\/p>\r\n            <\/div>\r\n        <\/div>\r\n\t\t                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n\t\t<\/code><\/p>\n\n\n\n<p>Displays events as an archive list.<\/p>\n\n\n\n<p>You can customize the shortcode using the following list of attributes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>title<\/strong>: Add the title in the double quotes. (<strong>default: empty)<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>category: <\/strong>Display events from a specific category by using category ID.<strong><strong>&nbsp;(default: empty \u2013 showing events from all categories.)<\/strong><\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>type:\u00a0<\/strong>Show events from a specific type (seminar\/webinar\/client-event\/other-event). (<strong>default: empty \u2013 shows all events)<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>exc_type: <\/strong>Hide events for a specific type (seminar\/webinar\/client-event\/other-event). (<strong>default: empty &#8211; shows all events)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/paper-attachments.dropbox.com\/s_DBB3520F20E20AC3E8059B8B900DA0B9DF1D1507EC4B1EF4CA061F2FEC820BF4_1632208644144_image.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Simple WP Events provides shortcodes to make this easy for you. All you need to do is to paste the shortcode into the archive page. Shortcode Displays events as an archive list. You can customize the shortcode using the following list of attributes:<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"ht-kb-category":[19],"ht-kb-tag":[],"class_list":["post-806","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-shortcodes"],"_links":{"self":[{"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb\/806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":2,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb\/806\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb\/806\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=806"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/simplewpevents.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}