{"id":1369,"date":"2025-03-12T20:54:12","date_gmt":"2025-03-12T20:54:12","guid":{"rendered":"https:\/\/digitalbees.net\/stg\/?p=1369"},"modified":"2025-06-04T16:39:20","modified_gmt":"2025-06-04T16:39:20","slug":"custom-plugin","status":"publish","type":"post","link":"https:\/\/digitalbees.net\/stg\/project\/custom-plugin\/","title":{"rendered":"Custom plugin"},"content":{"rendered":"\n<nav class=\"breadcrumbs\">\n  <a href=\"\/projects\/\" class=\"breadcrumb-link\">\u2190 All Projects<\/a>\n<\/nav>\n\n\n\n<div class=\"wp-block-columns word-of-the-day hero-single section is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:1380px\">\n<h1 class=\"wp-block-heading has-text-align-left cs-h1\"><\/h1>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group alignfull section last-section has-x-large-font-size\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading cs-h2\" style=\"font-size:22px\"><strong>Recovering and Rebuilding a Broken Content System<\/strong><\/h2>\n\n\n\n<p style=\"font-size:18px\">WordReference\u2019s Word of the Day site experienced a critical failure due to an outdated custom WordPress theme. The client needed a complete theme switch and a custom-coded solution to restore the dynamic content structure used for daily vocabulary posts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cs-h2\" style=\"font-size:22px\"><strong>Challenge: Theme Switch Without Losing Functionality<\/strong><\/h3>\n\n\n\n<p style=\"font-size:17px\">The original theme heavily relied on hardcoded queries and layouts. Once replaced, essential content such as \u201cWord of the Day\u201d, \u201cIntermediate Word of the Day\u201d, and \u201cBasic Word of the Day\u201d sections stopped working. To solve this, a lightweight plugin was developed to hook into the standard WordPress query and retrieve the appropriate posts by category, restoring the content via custom shortcodes.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-25 has-custom-font-size view-btn has-medium-font-size\"><a class=\"wp-block-button__link has-background has-text-align-center wp-element-button\" href=\"https:\/\/daily.wordreference.com\/\" style=\"background-color:#ed6214\" target=\"_blank\" rel=\"noreferrer noopener\">View Live \u2192<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-columns section is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column cs-box is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading has-text-align-center\"><strong>The Problem<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-center\">A theme change broke critical dynamic sections of the site. The previous solution relied on custom template code that wasn\u2019t portable or future-proof.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column cs-box-2 is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading has-text-align-center\"><strong>Tech Solution<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-center\">Rebuilt logic via a mini plugin using standard WordPress functions and custom shortcodes for easy insertion of dynamic category-based post listings.<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns section kpi-grid is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column single-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<p>Legacy content functionality restored after theme switch<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column single-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<p>Plugin-based logic replaces fragile theme-dependent code<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column single-column is-layout-flow wp-block-column-is-layout-flow\">\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<p>Shortcode system allows dynamic content across multiple pages<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns alignfull last-section is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column list-column list-col-1 is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h4 style=\"padding-left:40px;\"class=\"wp-block-heading has-text-align-left\"><strong>Key Implementations<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list list-1\">\n<li>Identified and removed <strong>outdated theme dependencies<\/strong><\/li>\n\n\n\n<li>Developed a <strong>custom plugin<\/strong> to handle daily post output<\/li>\n\n\n\n<li>Hooked into <strong>standard WordPress query<\/strong> to retrieve categorized posts<\/li>\n\n\n\n<li>Created shortcodes for  <strong>Intermediate<\/strong>, and <strong>Basic<\/strong> sections<\/li>\n\n\n\n<li>Ensured plugin works independently of any theme<\/li>\n<\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-column list-column list-col-2 is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<h4 style=\"padding-left:40px;\" class=\"wp-block-heading has-text-align-left\"><strong>Features in Action<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list list-2\">\n<li>Dynamic display of <strong>daily vocabulary posts<\/strong> grouped by level<\/li>\n\n\n\n<li>Content injected using <strong>clean shortcodes<\/strong> on relevant pages<\/li>\n\n\n\n<li>Future-proof: <strong>theme-agnostic<\/strong> plugin functionality<\/li>\n\n\n\n<li>Easy maintenance for editors, no code interaction required<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center additional-projects-heading\">Similar Projects<\/h2>\n\n\n\n<div class=\"wp-block-columns section is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column cs-box is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-query projects-query-loop is-layout-flow wp-block-query-is-layout-flow\"><ul class=\"wp-block-post-template is-layout-flow wp-block-post-template-is-layout-flow\"><li class=\"wp-block-post post-3948 post type-post status-publish format-standard has-post-thumbnail hentry category-project tag-design tag-tailored tag-wordpress\">\n<figure class=\"wp-block-post-featured-image\"><a href=\"https:\/\/digitalbees.net\/stg\/project\/plavia-blueberry-brandy\/\" target=\"_blank\"  ><img loading=\"lazy\" decoding=\"async\" width=\"1520\" height=\"490\" src=\"https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/07\/plavia.jpg\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"Plavia Blueberry Brandy\" style=\"object-fit:cover;\" srcset=\"https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/07\/plavia.jpg 1520w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/07\/plavia-300x97.jpg 300w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/07\/plavia-1024x330.jpg 1024w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/07\/plavia-768x248.jpg 768w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/a><\/figure>\n\n<h2 class=\"wp-block-post-title\">Plavia Blueberry Brandy<\/h2>\n<\/li><li class=\"wp-block-post post-1363 post type-post status-publish format-standard has-post-thumbnail hentry category-project tag-code tag-tailored tag-wordpress\">\n<figure class=\"wp-block-post-featured-image\"><a href=\"https:\/\/digitalbees.net\/stg\/project\/mini-plugin-for-stem-cells-clinic-cellaxys\/\" target=\"_blank\"  ><img loading=\"lazy\" decoding=\"async\" width=\"1520\" height=\"490\" src=\"https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/05\/Mini-plugin-for-Stem-Cells-Clinic-Cellaxys-laptop-1520x490-2.jpg\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"Enhancing Blog Publishing for Cellaxys\" style=\"object-fit:cover;\" srcset=\"https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/05\/Mini-plugin-for-Stem-Cells-Clinic-Cellaxys-laptop-1520x490-2.jpg 1520w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/05\/Mini-plugin-for-Stem-Cells-Clinic-Cellaxys-laptop-1520x490-2-300x97.jpg 300w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/05\/Mini-plugin-for-Stem-Cells-Clinic-Cellaxys-laptop-1520x490-2-1024x330.jpg 1024w, https:\/\/digitalbees.net\/stg\/wp-content\/uploads\/2025\/05\/Mini-plugin-for-Stem-Cells-Clinic-Cellaxys-laptop-1520x490-2-768x248.jpg 768w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/a><\/figure>\n\n<h2 class=\"wp-block-post-title\">Enhancing Blog Publishing for Cellaxys<\/h2>\n<\/li><\/ul>\n\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Recovering and Rebuilding a Broken Content System WordReference\u2019s Word of the Day site experienced a critical failure due to an outdated custom WordPress theme. The client needed a complete theme switch and a custom-coded solution to restore the dynamic content structure used for daily vocabulary posts. Challenge: Theme Switch Without Losing Functionality&#8230; <a class=\"read-more-button\" href=\"https:\/\/digitalbees.net\/stg\/project\/custom-plugin\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":3109,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[8,15,9],"class_list":["post-1369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-project","tag-code","tag-tailored","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/posts\/1369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/comments?post=1369"}],"version-history":[{"count":20,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/posts\/1369\/revisions"}],"predecessor-version":[{"id":3541,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/posts\/1369\/revisions\/3541"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/media\/3109"}],"wp:attachment":[{"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/media?parent=1369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/categories?post=1369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalbees.net\/stg\/wp-json\/wp\/v2\/tags?post=1369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}