- Clean up (done)
- Removed these plugins: WP Better Permalink
- Removed unused themes
- Changed BC setting: 主頁 –> 首頁
- Cleaned up child theme directory and files to align with AWS.
- Enqueued custom_reborn.css and moved ‘Additional CSS’ content to it. (done)
- Set BC settings->Taxonomy to show in bc for content types->D_Treatments (treatment): Treatmt Cat
- BC: Removed the url link for treatment post type which has sub-subcat level. (done)
functions.php:
* rewrite links in BC elements 1 and 2
* remove link in element 3
- Completed the template for 重塑美麗 (done)
- Completed the template for 專業療程 (done)
- Added pages. (done)
– 重塑美麗
– – 明亮雙目
– – 減淡色素
– 專業療程
- functions.php for URL rewrite: Rewrite links for treatment post. (done)
- Change scid & sscid from id to name (need to cater for duplicated names from different subcat.)
- Add default sub-subcat in the first rewrite rule.
- Use function to get page id in rules.(done)
- Add class for active sub-subcat.
- Add anchor point to url for scrolling.
- Add Search function in the top menu. (Done)
- Need to use the Dalia Search widget. The standard WP widget does not work.
- Remove post_type component within the URL of treatments posts. (done)
- Use Custom Post Permalink plugin
- Check whether posts are searchable after the change.
- Remove the numbering in sub-subcat slug and redefine the default sub-subcat names/subcat names. (done)
- Add Load More button to 專業療程 Area 2. (done)
- Localize the search form and search result page.(done)
- Check the use of functions.php to replace the creation of folder structures as the parent theme for template files.(done)
- With the use of the require_once(), the result was negative. The error is ‘function not found’ for functions called from the templates.
- Creation of Custom Post slider
- This can be done using the built-in post slider.
- Check SC language translation on BC, Search, Load More button… (done)
- Pass data to CF7 form using a Call-to-action button (done)
- See another blog post for details.
- For manually controlling the sorting sequence of posts using a custom field, check out another blog post.
- To fix the problem of duplicated posts turned out when the Load More button is clicked, add the code below to the WP_Query argument array in both the Template file and functions.php:
- In Template file, this applies to the sections for page count calculation and the post loop.
- In functions.php, this applies to the post loop.
'post_status' => 'publish',