Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

templates

Template for front page (latest posts)

whether a template can be provided for index.php? There’s no built-in capability for selecting a custom template for archives. How can i provide option for full width, sidebarleft& sidebarright options for index.php? You can add a generic Customizer control with options for which template to use for archives, then inside index.php you would just check … Read more

Categories theme-development Tags page-template, templates, theme-development

Update body class based on theme as well as a html attribute

If I am understanding you correctly you could use get_page_template_slug(). For example… <?php echo get_page_template_slug( $post->ID ); ?> Although, to be honest I don’t see the point of doing this over using body_class().

Categories templates Tags body-class, namespace, templates

why does not showing my custom post category list in any template?

why does not showing my custom post category list in any template?

Categories templates Tags templates

wordpress custom posts page not showing

For categories you would have to edit the archive.php or rather to be specific the category.php file. https://codex.wordpress.org/Category_Templates That page will give you an idea of the specificity you can go with template files.

Categories customization Tags customization, pages, templates

Templating advice sub posts of a CTP

For an easy solution, you could just create page templates and set their Template Post Type to match your custom post type. WordPress has supported custom page templates for other post types than page too since version 4.7. You can read more about it from the Theme handbook // Creating page templates for specific post … Read more

Categories custom-post-types Tags custom-post-types, template-hierarchy, templates

Displaying all posts of a category in full view on one page using their single.php template

May be this image will be helpful

Categories templates Tags templates

WordPress blog posts template bug [closed]

You’re not supposed to see the template dropdown when editing the Posts page, because changing the template with the dropdown wouldn’t do anything. The template for the Posts page is determined by the Template Hierarchy. When you make a page the Posts page it’s no longer a Page in terms of templates. It will use … Read more

Categories pages Tags blog, blog-page, page-template, pages, templates

Turning archive templates to a page template maintaining the slug

Turning archive templates to a page template maintaining the slug

Categories custom-post-types Tags archives, custom-post-types, templates, urls

Disable theme WooCommerce template [closed]

Many themes overwrite WooCommerce template files. A behaviour that can cause malfunctions. WC_TEMPLATE_DEBUG_MODE will prevent overrides in themes from taking priority // Add this to wp-config.php file define( ‘WC_TEMPLATE_DEBUG_MODE’, true ); https://docs.woocommerce.com/wc-apidocs/function-wc_get_template_part.html

Categories woocommerce-offtopic Tags templates, woocommerce-offtopic, wp-config

Change WooCommerce template for PDF – access to custom field

Change WooCommerce template for PDF – access to custom field

Categories PHP Tags php, templates, woocommerce-offtopic
Older posts
Newer posts
← Previous Page1 … Page56 Page57 Page58 … Page218 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress