{"id":215,"date":"2023-10-19T22:38:17","date_gmt":"2023-10-19T22:38:17","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=215"},"modified":"2023-10-19T23:00:51","modified_gmt":"2023-10-19T23:00:51","slug":"coming-soon","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/coming-soon\/","title":{"rendered":"SeedProd Shortcodes"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>SeedProd Shortcodes<\/strong> to your WordPress website, including their <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the SeedProd Plugin shortcodes not to show or not to work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, here is an overview of the SeedProd Plugin and the shortcodes it provides:<\/p>\n\n\n<p>    <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/coming-soon\/assets\/icon-128x128.png?rev=2402575\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/coming-soon\" target=\"_blank\" rel=\"noopener\">\n                        Website Builder by SeedProd \u2014 Theme Builder, Landing Page Builder, Coming Soon Page, Maintenance Mode                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Website Builder by SeedProd is a multifaceted WordPress plugin. It serves as a theme builder, landing page creator, and also allows you to design &#039;Coming Soon&#039; or &#039;Maintenance Mode&#039; pages.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2605\u2605\u2606<\/span> (4616)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 1000000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.3.2            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: 5.6            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[seedprodnestedmenuwidget]<\/li><li>[seedprodwpwidget]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SeedProd [seedprodnestedmenuwidget] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The SeedProd Nested Menu Widget shortcode creates a customizable menu in WordPress. It takes three parameters: &#8216;menu&#8217;, &#8216;menudivider&#8217;, and &#8216;layout&#8217;. \n\n\n\n&#8216;menu&#8217; specifies the menu name, &#8216;menudivider&#8217; sets the separator between menu items, and &#8216;layout&#8217; defines the orientation (&#8216;h&#8217; for horizontal, &#8216;v&#8217; for vertical). Depending on the &#8216;layout&#8217; and &#8216;menudivider&#8217;, a custom walker class is used for the menu. The output is a clean, organized navigation menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[seedprodnestedmenuwidget]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a list of all possible seedprodnestedmenuwidget shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>menu<\/code> &#8211; Name of the menu to be displayed<\/li>\n<li><code>menudivider<\/code> &#8211; Character used as a separator in the menu<\/li>\n<li><code>layout<\/code> &#8211; Layout style of the menu (&#8216;h&#8217; for horizontal, &#8216;v&#8217; for vertical)<\/li>\n<\/ul>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic example<\/strong> &#8211; Display a menu by referencing its name<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodnestedmenuwidget menu=\"Main Menu\" \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Display a menu with a specific divider and a horizontal layout. The divider will be used to separate each menu item, and the layout parameter will determine how the menu is displayed.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodnestedmenuwidget menu=\"Main Menu\" menudivider=\"|\" layout=\"h\" \/]<\/code><\/pre>\n\n\n<p>Display a menu with a specific divider and a vertical layout. In this case, the divider will not be used because the layout is vertical.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodnestedmenuwidget menu=\"Secondary Menu\" menudivider=\"|\" layout=\"v\" \/]<\/code><\/pre>\n\n\n<p>Display a menu without a divider. The menu items will be displayed next to each other without any separation.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodnestedmenuwidget menu=\"Footer Menu\" \/]<\/code><\/pre>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[seedprodnestedmenuwidget]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode( 'seedprodnestedmenuwidget', 'seedprod_lite_wordpress_menuwidget' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction seedprod_lite_wordpress_menuwidget( $atts ) {\n\n\t$menu_atts = shortcode_atts(\n\t\tarray(\n\t\t\t&#039;menu&#039;        =&gt; &#039;&#039;,\n\t\t\t&#039;menudivider&#039; =&gt; &#039;&#039;,\n\t\t\t&#039;layout&#039;      =&gt; &#039;h&#039;,\n\t\t),\n\t\t$atts\n\t);\n\n\t$navmenu_name = &#039;&#039;;\n\tif ( isset( $menu_atts&#91;&#039;menu&#039;] ) ) {\n\t\t$navmenu_name = $menu_atts&#91;&#039;menu&#039;];\n\t}\n\t$navmenu_seperator = &#039;&#039;;\n\tif ( isset( $menu_atts&#91;&#039;menudivider&#039;] ) ) {\n\t\t$navmenu_seperator = $menu_atts&#91;&#039;menudivider&#039;];\n\t}\n\t$layout = &#039;&#039;;\n\tif ( isset( $menu_atts&#91;&#039;layout&#039;] ) ) {\n\t\t$layout = $menu_atts&#91;&#039;layout&#039;];\n\t}\n\n\t$walker_divider = true;\n\tif ( &#039;&#039; == $navmenu_seperator || &#039;v&#039; == $layout ) {\n\t\t$walker_divider = false;\n\t}\n\n\tif ( true == $walker_divider ) {\n\t\t$args = array(\n\t\t\t&#039;menu&#039;            =&gt; $navmenu_name,\n\t\t\t&#039;container_class&#039; =&gt; &#039;nav-menu-bar&#039;,\n\t\t\t&#039;menu_class&#039;      =&gt; &#039;seedprod-menu-list&#039;,\n\t\t\t&#039;walker&#039;          =&gt; new SeedProd_Lite_Menu_Walker( $navmenu_seperator ),\n\t\t);\n\t} else {\n\t\t$args = array(\n\t\t\t&#039;menu&#039;            =&gt; $navmenu_name,\n\t\t\t&#039;container_class&#039; =&gt; &#039;nav-menu-bar&#039;,\n\t\t\t&#039;menu_class&#039;      =&gt; &#039;seedprod-menu-list&#039;,\n\t\t);\n\t}\n\n\tob_start();\n\twp_nav_menu( $args );\n\t$content = ob_get_contents();\n\tob_end_clean();\n\n\treturn $content;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">coming-soon\/coming-soon\/app\/nestednavmenu.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SeedProd [seedprodwpwidget] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The SeedProd WordPress Widget shortcode allows you to add specific widgets to your posts or pages. \n\nShortcode Name: SeedProd WordPress Widget. \n\n\n\nThis shortcode retrieves the widget name from the attributes, converts string booleans to actual booleans, and outputs the widget content. It provides flexibility by letting you place widgets anywhere within your content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[seedprodwpwidget]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic Example<\/strong> &#8211; A simple usage of the &#8216;seedprodwpwidget&#8217; shortcode to display a specific widget by its name. In this case, we are displaying the &#8216;Calendar&#8217; widget.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodwpwidget \"WP_Widget_Calendar\" \/]<\/code><\/pre>\n\n\n<p><strong>Advanced Examples<\/strong><\/p>\n<p>Here, we are using the &#8216;seedprodwpwidget&#8217; shortcode to display the &#8216;Recent Posts&#8217; widget with several parameters. We are setting the &#8216;number&#8217; parameter to 5, which will display the five most recent posts. We are also setting the &#8216;show_date&#8217; parameter to &#8216;true&#8217;, which will display the date of each post.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodwpwidget \"WP_Widget_Recent_Posts\" number=\"5\" show_date=\"true\" \/]<\/code><\/pre>\n\n\n<p>Another advanced usage of the &#8216;seedprodwpwidget&#8217; shortcode is to display the &#8216;Categories&#8217; widget with the &#8216;dropdown&#8217; parameter set to &#8216;true&#8217;. This will display the categories as a dropdown list instead of a list.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[seedprodwpwidget \"WP_Widget_Categories\" dropdown=\"true\" \/]<\/code><\/pre>\n\n\n<p>These examples demonstrate how to use the &#8216;seedprodwpwidget&#8217; shortcode to display various WordPress widgets with different parameters. The shortcode is very flexible and can be used to display any widget that is registered with WordPress.<\/p>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[seedprodwpwidget]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode( 'seedprodwpwidget', 'seedprod_lite_wordpress_widget' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction seedprod_lite_wordpress_widget( $atts ) {\n\n\t$widget_name = $atts&#91;0];\n\tunset( $atts&#91;0] );\n\n\t\/\/ convert string bool\n\tforeach ( $atts as $k =&gt; $v ) {\n\t\tif ( &#039;true&#039; === $v ) {\n\t\t\t$atts&#91; $k ] = true; }\n\t\tif ( &#039;false&#039; === $v ) {\n\t\t\t$atts&#91; $k ] = false; }\n\t\t\/\/$atts&#91;$k] = ($v === &#039;true&#039;)? true: false;\n\t}\n\n\tglobal $wp_widget_factory;\n\t$inst     = $wp_widget_factory-&gt;widgets&#91; $widget_name ];\n\t$instance = $atts;\n\n\tob_start();\n\tthe_widget( $widget_name, $instance );\n\t$content = ob_get_contents();\n\tob_end_clean();\n\n\treturn $content;\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">coming-soon\/coming-soon\/app\/nestednavmenu.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>SeedProd Plugin shortcodes<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the SeedProd Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the SeedProd Plugin shortcodes not to show or not to work correctly. Before starting, here is an overview of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Website Builder by SeedProd \u2014 Theme Builder, Landing Page Builder, Coming Soon Page, Maintenance Mode","slug":"","version":"6.15.15.3","author":"<a href=\"https:\/\/www.seedprod.com\/lite-upgrade\/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=author-uri-link\">SeedProd<\/a>","icons":"https:\/\/ps.w.org\/coming-soon\/assets\/icon-128x128.png?rev=2402575","plugin_tags":"{\"coming-soon-page\":\"coming soon page\",\"landing-page\":\"landing page\",\"maintenance-mode\":\"maintenance mode\",\"page-builder\":\"page builder\",\"website-builder\":\"website builder\"}","author_profile":"https:\/\/profiles.wordpress.org\/seedprod\/","requires":"5.0","tested":"6.3.2","requires_php":"5.6","rating":98,"num_ratings":4616,"active_installs":1000000,"downloaded":22826134,"last_updated":"2023-09-19 2:33pm GMT","added":"2014-01-21","homepage":"https:\/\/www.seedprod.com\/lite-upgrade\/?utm_source=WordPress&utm_campaign=liteplugin&utm_medium=plugin-uri-link","short_description":"Easy Drag &amp; Drop Page Builder. A complete solution to create a WordPress Website, Custom Themes, Landing Pages, Coming Soon &amp; Maintenance Mode Pages.","description":"\"Website Builder by SeedProd is a multifaceted WordPress plugin. It serves as a theme builder, landing page creator, and also allows you to design 'Coming Soon' or 'Maintenance Mode' pages.\"","shortcodes":"[\"seedprodnestedmenuwidget\",\"seedprodwpwidget\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":2,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/215\/revisions\/217"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}