{"id":22,"date":"2025-11-19T20:15:05","date_gmt":"2025-11-19T20:15:05","guid":{"rendered":"http:\/\/PeterSchulzNL"},"modified":"2025-11-26T12:54:42","modified_gmt":"2025-11-26T12:54:42","password":"","slug":"shortcode-wpdadiehard","status":"publish","type":"docs","link":"https:\/\/docs.legacy.wpdataaccess.com\/docs\/shortcode-wpdadiehard\/","title":{"rendered":"wpdadiehard"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.19.1&#8243; custom_margin=&#8221;0px|0px|0px|0px|false|false&#8221; custom_padding=&#8221;0px|0px|0px|0px|false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.19.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; width=&#8221;100%&#8221; custom_margin=&#8221;0px|0px|0px|0px|false|false&#8221; custom_padding=&#8221;0px|0px|0px|0px|false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Use shortcode <strong>wpdadiehard<\/strong> to enable data administration for a specific database table or Data Projects page on a web page.<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Shortcode <strong>wpdadiehard<\/strong> must be enabled:<br \/>Plugin Settings > Plugin > Shortcode [ wpdadiehard ]<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Data Projects shortcodes<\/h2>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Shortcode <strong>wpdadiehard<\/strong> can be used to add a Data Projects page to a web page. Supported shortcode parameters are:<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li>project_id (Data Projects -> Project ID)<\/li>\n<li>page_id (Data Projects -> Page ID)<\/li>\n<li>filter_field_name (field name(s) to be filtered)<\/li>\n<li>filter_field_value (field value(s) to filter, performs a LIKE and therefor allows wildcards)<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3>Copy\/paste shortcode from a Data Project<\/h3>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]There&#8217;s no need to type the shortcode. The shortcode can be copied from your Data Projects page to your clipboard and pasted into your page or post.[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li>Start Data Projects<\/li>\n<li>Edit your project<\/li>\n<li>Click on link Shortcode(s)<\/li>\n<li>Copy shortcode to clipboard<\/li>\n<li>Edit your page or post<\/li>\n<li>Paste shortcode into your page or post<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; _builder_version=&#8221;4.19.2&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Example<\/h2>\n<p>[\/et_pb_text][et_pb_dmb_code_snippet code=&#8221;W3dwZGFkaWVoYXJkIHByb2plY3RfaWQ9IjciIHBhZ2VfaWQ9IjExIl0=&#8221; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_dmb_code_snippet][et_pb_text _builder_version=&#8221;4.19.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li><a href=\"\/data-project-parent-child-demo\/\">Click here for a live demo<\/a><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Adding filters<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]Use parameters <strong>filter_field_name<\/strong> and <strong>filter_field_value<\/strong> to set a filter. For example:[\/et_pb_text][et_pb_dmb_code_snippet code=&#8221;W3dwZGFkaWVoYXJkIHByb2plY3RfaWQ9IjEiIHBhZ2VfaWQ9IjEiIGZpbHRlcl9maWVsZF9uYW1lPSJsYXN0X25hbWUiIGZpbHRlcl9maWVsZF92YWx1ZT0iSm9uZXMiXQ==&#8221; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_dmb_code_snippet][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>This will show only customers with last_name = &#8220;Jones&#8221;.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Adding a filter on multiple columns:<\/p>\n<p>[\/et_pb_text][et_pb_dmb_code_snippet code=&#8221;W3dwZGFkaWVoYXJkIHByb2plY3RfaWQ9IjEiIHBhZ2VfaWQ9IjEiIGZpbHRlcl9maWVsZF9uYW1lPSJmaXJzdF9uYW1lLGxhc3RfbmFtZSIgZmlsdGVyX2ZpZWxkX3ZhbHVlPSJHcmFjZSxKb25lcyJd&#8221; _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_dmb_code_snippet][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>This will show only customers with first_name = &#8220;Grace&#8221; and last_name = &#8220;Jones&#8221;.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>More complex filters<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>Please use the WHERE clause of your project page to add more complex filters (see image below)<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/wpdataaccess.com\/wp-content\/uploads\/2020\/08\/data-projects-default-where.png&#8221; title_text=&#8221;wpdadiehard&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Video tutorial<\/h2>\n<p>[\/et_pb_text][et_pb_video src=&#8221;https:\/\/www.youtube.com\/embed\/nw5MJ6_-5SU&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_video][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Styling<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li><a href=\"\/styling-a-data-project\/\">Styling Data Projects using shortcode <strong>wpdadiehard<\/strong><\/a><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Know limitations<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ul>\n<li>Short <strong>wpdadiehard <\/strong>has a number of limitation! <a href=\"https:\/\/docs.wpdataaccess.com\/limitations.html\" target=\"_blank\">Read more&#8230;<\/a><\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Notes<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<ul>\n<li>Although I recommend to perform data and database administration tasks with the free version from the WordPress dashboard, the plugin allows real data diehards to perform data administration tasks on web pages as well. The WordPress dashboard protects you from hackers, especially if you have taken the necessary precautions. Web pages do not have that kind of security by default. If you decide to offer data administration on your web pages you need to take the necessary steps to secure these pages. Please be aware that every user who visits your website can modify your table data if you give users anonymous access. This is your own responsibility!<\/li>\n<\/ul>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use shortcode wpdadiehard to enable data administration for a specific database table or Data Projects page on a web page.Shortcode wpdadiehard must be enabled:Plugin Settings > Plugin > Shortcode [ wpdadiehard ]Data Projects shortcodesShortcode wpdadiehard can be used to add a Data Projects page to a web page. Supported shortcode parameters are: project_id (Data Projects [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<!-- wp:paragraph -->\n<p>Use shortcode <strong>wpdadiehard<\/strong> to add data administration for a specific table or Data Projects page to a web page.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Shortcode <strong>wpdadiehard<\/strong> must be enabled:<br>Settings &gt; WP Data Access &gt; Plugin &gt; Shortcode [ wpdadiehard ]<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>Data Projects shortcodes<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Shortcode <strong>wpdadiehard<\/strong> can be used to add a Data Projects page to a web page. Supported shortcode parameters:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:list -->\n<ul><li>project_id (Data Projects -&gt; Project ID)<\/li><li>page_id (Data Projects -&gt; Page ID)<\/li><li>filter_field_name (field name(s) to be filtered)<\/li><li>filter_field_value (field value(s) to filter, performs a LIKE and therefor allows wildcards)<\/li><\/ul>\n<!-- \/wp:list -->\n\n<!-- wp:heading {\"level\":3} -->\n<h3>Copy\/paste shortcode from a Data Project<\/h3>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>There's no need to type in the shortcode. The shortcode can be copied from Data Projects to your clipboard and pasted into your page or post.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:list -->\n<ul><li>Start Data Projects<\/li><li>Edit your project<\/li><li>Click on link Shortcode(s)<\/li><li>Copy shortcode to clipboard<\/li><li>Edit your page or post<\/li><li>Paste shortcode into your page or post<\/li><\/ul>\n<!-- \/wp:list -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4>Example<\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:code -->\n<pre class=\"wp-block-code\"><code>&#91;wpdadiehard project_id=\"7\" page_id=\"11\"]<\/code><\/pre>\n<!-- \/wp:code -->\n\n<!-- wp:paragraph -->\n<p><a href=\"https:\/\/wpdataaccess.com\/demos\/shortcodes\/demo-shortcode-wpdadiehard\/\">&gt; Click here for a live example<\/a><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>User defined shortcodes<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>User defined shortcodes are still supported for backward compatibility, but no longer adviced. Please update your user defined shortcodes to Data Projects shortcodes, which are safer, easier to maintain and support more features.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>Adding filters<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Use parameters <strong>filter_field_name<\/strong> and <strong>filter_field_value<\/strong> to set a filter. For example:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:code -->\n<pre class=\"wp-block-code\"><code>&#91;wpdadiehard project_id=\"1\" page_id=\"1\" filter_field_name=\"last_name\" filter_field_value=\"Jones\"]<\/code><\/pre>\n<!-- \/wp:code -->\n\n<!-- wp:paragraph -->\n<p>This will show only customers with last_name = \"Jones\".<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Adding a filter on multiple columns:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:code -->\n<pre class=\"wp-block-code\"><code>&#91;wpdadiehard project_id=\"1\" page_id=\"1\" filter_field_name=\"first_name,last_name\" filter_field_value=\"Grace,Jones\"]<\/code><\/pre>\n<!-- \/wp:code -->\n\n<!-- wp:paragraph -->\n<p>This will show only customers with first_name = \"Grace\" and last_name = \"Jones\".<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>More complex filters<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Please use the WHERE clause of your project page to add more complex filters (see image below - click to enlarge)<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:html -->\n<figure class=\"wp-block-image\"><a href=\"\/\/wpdataaccess.com\/wp-content\/uploads\/2020\/08\/data-projects-default-where.png\"><img src=\"\/\/wpdataaccess.com\/wp-content\/uploads\/2020\/08\/data-projects-default-where.png\" alt=\"\" title=\"WP Data Access - Data Projects - Add default where (click to enlarge)\"><\/a><\/figure>\n<!-- \/wp:html -->\n\n<!-- wp:heading -->\n<h2>Video tutorial<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:embed {\"url\":\"https:\/\/www.youtube.com\/embed\/nw5MJ6_-5SU\",\"type\":\"rich\",\"providerNameSlug\":\"embed-handler\",\"responsive\":true,\"className\":\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"} -->\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.youtube.com\/embed\/nw5MJ6_-5SU\n<\/div><\/figure>\n<!-- \/wp:embed -->\n\n<!-- wp:heading -->\n<h2>Styling<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p><a href=\"https:\/\/wpdataaccess.com\/2020\/12\/07\/styling-a-data-project\/\">&gt; Styling shortcode <strong>wpdadiehard<\/strong><\/a><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>Know limitations<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Short <strong>wpdadiehard <\/strong>has a number of limitation! <a href=\"https:\/\/wpdataaccess.com\/docs\/documentation\/getting-started\/known-limitations\/\">Read more...<\/a><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>Notes<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Although I recommend to perform data and database administration tasks with the free version from the WordPress dashboard, the plugin allows real data diehards to perform data administration tasks on web pages as well. The WordPress dashboard protects you from hackers, especially if you have taken the necessary precautions. Web pages do not have that kind of security by default. If you decide to offer data administration on your web pages you need to take the necessary steps to secure these pages. Please be aware that every user who visits your website can modify your table data if you give users anonymous access. This is your own responsibility!<\/p>\n<!-- \/wp:paragraph -->","_et_gb_content_width":"","footnotes":""},"doc_category":[11],"doc_tag":[],"knowledge_base":[],"class_list":["post-22","docs","type-docs","status-publish","hentry","doc_category-shortcodes"],"year_month":"2026-06","word_count":1018,"total_views":"90","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"peterschulz.nl@gmail.com","author_nicename":"peterschulz-nlgmail-com","author_url":"https:\/\/wpdataaccess.com\/author\/wpdataaccess_admin\/"},"doc_category_info":[{"term_name":"Shortcodes","term_url":"https:\/\/docs.legacy.wpdataaccess.com\/docs\/non-knowledgebase\/shortcodes\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs\/22\/revisions"}],"predecessor-version":[{"id":20295,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/docs\/22\/revisions\/20295"}],"wp:attachment":[{"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/doc_category?post=22"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/doc_tag?post=22"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/docs.legacy.wpdataaccess.com\/wp-json\/wp\/v2\/knowledge_base?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}