{"id":1958279,"date":"2023-11-10T17:54:53","date_gmt":"2023-11-10T22:54:53","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/?p=1958279"},"modified":"2024-03-01T08:13:46","modified_gmt":"2024-03-01T13:13:46","slug":"shortcodes-custom-fields-and-setting-options","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/shortcodes-custom-fields-and-setting-options\/","title":{"rendered":"Event Schedule Manager Shortcodes, custom fields, and Setting options"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-schedule-shortcode\">Schedule Shortcode<\/h2>\n\n\n\n<p><strong>[tec_schedule]<\/strong><\/p>\n\n\n\n<p>Example shortcode:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;tec_schedule tracks=&quot;all&quot; color_scheme=&quot;light&quot; session_link=&quot;none&quot;]\n<\/pre><\/div>\n\n\n<p>This would output a schedule with all tracks, using a light color scheme, and session titles not being linked. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8216;date&#8217; (default: null) &#8211; Specifies the date for which the schedule should be displayed; when set to null, the schedule does not display.\n<ul class=\"wp-block-list\">\n<li>Supports multiple dates (comma separated)<\/li>\n\n\n\n<li>Creates date tabs<\/li>\n\n\n\n<li>i.e: date=&#8221;2023-09-21, 2023-09-22&#8243; <\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;tracks&#8217; (default: all) &#8211; Allows the user to specify which tracks should be displayed in the schedule;\n<ul class=\"wp-block-list\">\n<li>&#8220;all&#8221; will display sessions from all tracks.<\/li>\n\n\n\n<li>a comma-separated list of track term slugs displays those specific tracks<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;session_link&#8217; (default: permalink) &#8211; Determines the type of link to be used for the sessions; the options are:\n<ul class=\"wp-block-list\">\n<li>&#8220;permalink&#8221; &#8211; each session title will link to the full session details page.<\/li>\n\n\n\n<li>&#8220;anchor&#8221; &#8211; each session title will link to an anchor on the current page.<\/li>\n\n\n\n<li>&#8220;none&#8221; &#8211; session titles will not be linked at all.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;color_scheme&#8217; (default: light) &#8211; Sets the color scheme for the schedule; the options are:\n<ul class=\"wp-block-list\">\n<li>&#8220;light&#8221; &#8211; will use a light color scheme.<\/li>\n\n\n\n<li>&#8220;dark&#8221; &#8211; will use a dark color scheme.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;align&#8217; (default: &#8220;&#8221;) &#8211; Defines the alignment of the schedule on the page; the options include:\n<ul class=\"wp-block-list\">\n<li>&#8220;wide&#8221; &#8211; will make the schedule wider than the content area.<\/li>\n\n\n\n<li>&#8220;full&#8221; &#8211; will make the schedule take up the full width of the page.<\/li>\n\n\n\n<li>&#8220;&#8221; (empty string) &#8211; will use the default alignment as defined by the theme.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;layout&#8217; (default: table) &#8211; Specifies the layout to be used for displaying the schedule;\n<ul class=\"wp-block-list\">\n<li>&#8220;table&#8221; will use a table layout for the schedule.<\/li>\n\n\n\n<li>&#8220;grid&#8221; will use a grid layout<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;row_height&#8217; (default: match) &#8211; Determines the row height for the schedule using the grid view.\n<ul class=\"wp-block-list\">\n<li>&#8220;match&#8221;, it will ensure that all rows have the same height.<\/li>\n\n\n\n<li>&#8220;auto&#8221;, rows will size to the content in the row.\u00a0<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8216;content&#8217; (default: none) &#8211; Defines how the content of each session should be displayed in the schedule;\n<ul class=\"wp-block-list\">\n<li>&#8220;none&#8221; means that the session content will not be displayed.&nbsp;<\/li>\n\n\n\n<li>&#8220;full&#8221; means all session content is displayed.<\/li>\n\n\n\n<li>&#8220;excerpt&#8221; means only the excerpt is displayed.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-sessions-shortcode\">Sessions Shortcode<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-single-sessions-custom-fields\">Single Sessions custom fields<\/h3>\n\n\n\n<p>For the sessions post type.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Conference Session Speakers (_conference_session_speakers) &#8211; This field stores the list of speakers for a session as a single text string, which is sanitized before being saved.<\/li>\n\n\n\n<li>Session Time (_wpcs_session_time) &#8211; This field stores the start time of the session, which is computed from the session date, hour, minute, and meridiem values posted from the session edit form.<\/li>\n\n\n\n<li>Session End Time (_wpcs_session_end_time) &#8211; This field stores the end time of the session, computed similar to the session time field but using the end hour, end minute, and end meridiem values.<\/li>\n\n\n\n<li>Session Type (_wpcs_session_type) &#8211; This field stores the type of session, which can be one of three values: &#8220;session&#8221;, &#8220;mainstage&#8221;, or &#8220;custom&#8221;; if an invalid value is posted, it defaults to &#8220;session&#8221;.\n<ul class=\"wp-block-list\">\n<li>&#8220;custom&#8221; is set to &#8220;break, lunch, etc..&#8221; by default<\/li>\n\n\n\n<li>Break, Lunch, etc.. session type does not generate a URL to click on when seen in the schedule<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Speaker Display (wpcsp_session_speaker_display) &#8211; This radio button field allows users to choose the manner of displaying speakers: either typing the names manually or selecting from a list of speakers from a custom post type (CPT).<\/li>\n\n\n\n<li>Speaker Name(s) (_wpcs_session_speakers) &#8211; This field allows for the manual input of speaker names as a text field; it is conditionally displayed based on the value of the &#8220;Speaker Display&#8221; field.<\/li>\n\n\n\n<li>Speakers (wpcsp_session_speakers) &#8211; This multi-select field allows users to select and order speakers for the session from a list of speakers stored as a custom post type, and it is conditionally displayed based on the &#8220;Speaker Display&#8221; field value being &#8220;cpt&#8221;.<\/li>\n\n\n\n<li>Sponsors (wpcsp_session_sponsors) &#8211; This multi-select field allows users to select and order sponsors for the session from a list of sponsors stored as a custom post type.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-speakers-shortcode\">Speakers Shortcode<\/h2>\n\n\n\n<p>Example shortcode: <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;tec_speakers image_size=&quot;250&quot; order=&quot;asc&quot; speaker_link=&quot;permalink&quot;]\n<\/pre><\/div>\n\n\n<p>This would output a list of speakers with a speaker image size of 250 pixels, listed in ascending order, and speakers&#8217; names will be a hyperlink to their posts.<\/p>\n\n\n\n<p><strong>[tec_speakers]<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>show_image (default: true) &#8211; This option controls whether to display the speaker&#8217;s image or not. If set to true, the speaker&#8217;s featured image will be displayed in the output.<\/li>\n\n\n\n<li>image_size (default: 150) &#8211; This defines the size (both width and height) of the speaker&#8217;s image in pixels. The image will be displayed as a square with the specified size.<\/li>\n\n\n\n<li>show_content (default: false) &#8211; Determines whether to display the content of the speaker&#8217;s post (the description) in the output. If true, the content of each speaker\u2019s post will be displayed.<\/li>\n\n\n\n<li>posts_per_page (default: -1) &#8211; Specifies the number of speaker posts to retrieve and display. The default value of -1 means that all speaker posts will be retrieved and displayed.<\/li>\n\n\n\n<li>orderby (default: &#8216;date&#8217;) &#8211; This option specifies the criterion to be used to order the speaker posts. They can be ordered by &#8216;date&#8217;, &#8216;title&#8217;, or &#8216;rand&#8217; (random).<\/li>\n\n\n\n<li>order (default: &#8216;desc&#8217;) &#8211; Determines the order of the retrieved posts, either &#8216;asc&#8217; (ascending) or &#8216;desc&#8217; (descending), based on the criterion specified in orderby.<\/li>\n\n\n\n<li>speaker_link (default: &#8221;) &#8211; Controls whether to link the speaker&#8217;s name to their individual post. If set to &#8216;permalink&#8217;, the speaker&#8217;s name will be a hyperlink to their post.<\/li>\n\n\n\n<li>track (default: &#8221;) &#8211; Allows filtering speakers based on the tracks they are associated with. You can provide a comma-separated list of track slugs to filter the speakers.<\/li>\n\n\n\n<li>groups (default: &#8221;) &#8211; Allows filtering speakers based on the groups they are associated with. You can provide a comma-separated list of group slugs to filter the speakers.<\/li>\n\n\n\n<li>columns (default: 1) &#8211; Specifies the number of columns in the grid layout used to display the speakers. The speakers will be displayed in a grid with the specified number of columns.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>gap (default: 30) &#8211; Specifies the gap (in pixels) between the grid items (speakers).<\/li>\n\n\n\n<li>align (default: &#8216;left&#8217;) &#8211; Sets the text alignment within the grid items. The text can be aligned to the &#8216;left&#8217;, &#8216;center&#8217;, &#8216;right&#8217;, etc.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-single-speakers-custom-fields\">Single Speakers custom fields<\/h3>\n\n\n\n<p>For the Speakers post type<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First Name &#8211; This field allows users to input the first name of a speaker.<\/li>\n\n\n\n<li>Last Name (wpcsp_last_name) &#8211; This field allows users to input the last name of a speaker.<\/li>\n\n\n\n<li>Title (wpcsp_title) &#8211; This field allows users to input the title or position of a speaker.<\/li>\n\n\n\n<li>Organization (wpcsp_organization) -This field allows users to specify the organization that the speaker is affiliated with.<\/li>\n\n\n\n<li>Facebook URL (wpcsp_facebook_url) &#8211; This field allows users to input the Facebook profile URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n\n\n\n<li>Twitter URL (wpcsp_twitter_url) &#8211; This field allows users to input the Twitter profile URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n\n\n\n<li>Instagram URL (wpcsp_instagram_url) &#8211; This field allows users to input the Instagram profile URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n\n\n\n<li>LinkedIn URL (wpcsp_linkedin_url) &#8211; This field allows users to input the LinkedIn profile URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n\n\n\n<li>YouTube URL (wpcsp_youtube_url) &#8211; This field allows users to input the YouTube profile URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n\n\n\n<li>Website URL (wpcsp_website_url) &#8211; This field allows users to input the personal or professional website URL of a speaker, and it ensures that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-sponsors-shortcode\">Sponsors Shortcode<\/h2>\n\n\n\n<p>Example shortcode:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;tec_sponsors title=&quot;visible&quot; content=&quot;full&quot; excerpt_length=&quot;100&quot;] \n<\/pre><\/div>\n\n\n<p>This would display the sponsors with a visible title, full content of the sponsor&#8217;s post, and an excerpt length of 100 characters. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>link (default: &#8216;none&#8217;) &#8211; This option dictates what the sponsor images and titles link to. It can have three possible values:\n<ul class=\"wp-block-list\">\n<li>&#8216;none&#8217;: No link is applied to the sponsor images and titles.<\/li>\n\n\n\n<li>&#8216;website&#8217;: The sponsor images and titles link to the sponsor&#8217;s website URL, which is fetched from a custom field (wpcsp_website_url).&nbsp;<\/li>\n\n\n\n<li>&#8216;post&#8217;: The sponsor images and titles link to the individual sponsor&#8217;s post on your WordPress site.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>title (default: hidden) &#8211; Controls the visibility of the sponsor title (name). It has two states in the script:\n<ul class=\"wp-block-list\">\n<li>&#8216;visible&#8217;: The sponsor title is displayed.&nbsp;<\/li>\n\n\n\n<li>&#8216;hidden&#8217;: The sponsor title is hidden<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>content (default: &#8216;hidden&#8217;) &#8211; Determines the content display style for each sponsor. It has three possible states:\n<ul class=\"wp-block-list\">\n<li>&#8216;full&#8217;: Displays the full content of the sponsor&#8217;s post.<\/li>\n\n\n\n<li>&#8216;excerpt&#8217;: Displays an excerpt of the content, limited to a number of words defined by the excerpt_length attribute.<\/li>\n\n\n\n<li>&#8216;hidden&#8217;: The content is hidden<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>excerpt_length (default: 55) &#8211; Defines the number of words to be displayed when the content attribute is set to &#8216;excerpt&#8217;. The content will be trimmed to this number of words.<\/li>\n\n\n\n<li>heading_level (default: &#8216;h2&#8217;) &#8211; Sets the HTML heading level for the sponsor level headings. It controls the HTML tag used for these headings (e.g., &#8216;h2&#8217;, &#8216;h3&#8217;, &#8216;h4&#8217;, etc.).&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-single-sponsors-custom-field\">Single Sponsors custom field<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Website URL (wpcsp_website_url) &#8211; This field allows users to input the website URL of a sponsor, validating that the URL uses either the &#8220;http&#8221; or &#8220;https&#8221; protocol.<\/li>\n<\/ul>\n\n\n\n<p><strong>Single Sponsor Level Taxonomy<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Logo Height (wpcsp_logo_height) &#8211; This field allows users to specify the height (in pixels) of the sponsor&#8217;s logo, accepting only numerical values<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-settings-options\">Settings Options<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Schedule Page URL (wpcs_field_schedule_page_url) &#8211; Lets the admin set the URL where the conference schedule is embedded, expecting a URL input in a text field.<\/li>\n\n\n\n<li>Speakers Page URL (wpcsp_field_speakers_page_url) &#8211; Located in &#8220;General Settings,&#8221; it allows the admin to define the URL of the speakers&#8217; page, accompanied by a sanitization callback for clean data entry.<\/li>\n\n\n\n<li>Sponsor URL Redirect (wpcsp_field_sponsor_page_url) &#8211; Enables the admin to set the redirection behavior for sponsor links through a dropdown selector; it includes a sanitization callback for input validation.<\/li>\n\n\n\n<li>Sponsor Level Order (wpcsp_conference_sponsor_level_order) &#8211; In &#8220;General Settings,&#8221; it enables the admin to order sponsor levels on the sponsors page template using a draggable list, with validation to ensure proper data format.<\/li>\n\n\n\n<li>Speaker Group Order (wpcsp_speaker_level_order) &#8211; Allows the admin to set the display order of speaker groups on the speaker page template through a draggable list interface, ensuring correct data format through validation.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Schedule Shortcode [tec_schedule] Example shortcode: This would output a schedule with all tracks, using a light color scheme, and session titles not being linked. Sessions Shortcode Single Sessions custom fields For the sessions post type. Speakers Shortcode Example shortcode: This would output a list of speakers with a speaker image size of 250 pixels, listed&#8230;<\/p>\n","protected":false},"author":34,"featured_media":1955565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[61],"tags":[],"stellar-product-taxonomy":[205],"class_list":["post-1958279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-events-features","stellar-product-taxonomy-event-schedule-manager"],"acf":[],"taxonomy_info":{"category":[{"value":61,"label":"Product Features"}],"stellar-product-taxonomy":[{"value":205,"label":"Event Schedule Manager"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"jaimem","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/jaimem\/"},"comment_info":0,"category_info":[{"term_id":61,"name":"Product Features","slug":"events-features","term_group":0,"term_taxonomy_id":61,"taxonomy":"category","description":"","parent":0,"count":31,"filter":"raw","term_order":"0","cat_ID":61,"category_count":31,"category_description":"","cat_name":"Product Features","category_nicename":"events-features","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1958279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1958279"}],"version-history":[{"count":13,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1958279\/revisions"}],"predecessor-version":[{"id":1959527,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1958279\/revisions\/1959527"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1958279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1958279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1958279"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1958279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}