If you take a look at the Codex page for get_template_part(), you fill find the following usage:
Load a template part into a template (other than header, sidebar, footer). Makes it easy for a theme to reuse sections of code and an easy way for child themes to replace sections of their parent theme.
Includes the named template part for a theme or if a name is specified then a specialized part will be included. If the theme contains no
{slug}.phpfile then no template will be included.
<?php get_template_part( $slug, $name ); ?>
$slug
(string) (required) The slug name for the generic template.
Default: None$name
(string) (optional) The name of the specialized template.
Default: None
That means you can use the following:
<?php get_template_part( 'recaptchalib' ); ?>
You can use this to include every file in your theme directory.
Related Posts:
- get_template_part vs action hooks in themes
- Using classes instead of global functions in functions.php
- How to move page template files like page-{slug}.php to a sub-directory?
- Add custom classes to anchor in wp_nav_menu
- Are the WordPress Core CSS styles really all nessesary?
- Allow Shortcode in Theme Customizer
- Where to post/upload the new theme for WordPress theme repository
- Setting multiple default background images?
- Template for individual post designs
- How to make a theme with more than one CSS file?
- Pushing updates to your premium theme
- How do I get gallery thumbnail URL and change the default thumbnail size?
- Front End Post Submit Form
- Select menu on browser resize
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- CSS in child theme not overriding the parent theme [closed]
- Can I upload WordPress-react theme in Wp theme repository
- Displaying wp menus by name without using theme locations
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- Upgrading a custom theme through the Dashboard
- Do I really need the div class entry?
- Get list of months with posts
- Cannot get full thumbnail size using the_post_thumbnail
- Version control for both Vagrant config and themes being developed [closed]
- Is there a way to activate different theme for specified users? [closed]
- how can I remove the sidebar from my wp homepage [closed]
- Does any theme support child theme?
- Am I supposed to create a child theme for every theme I use?
- How do I save a wordpress theme’s files and install them on another site?
- “add_theme_support” for custom footer color?
- Why wp_head() function not loading style.css?
- Override theme programmatically
- WP 3.1 upgrade breaks AutoFocus+ theme
- How can I display/hide certain content based on a Theme Option field?
- create-guten-block in wordpress theme?
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Theme Splash Image within the “Appearance -> Themes” control panel [duplicate]
- Theme Loading Into Dashboard
- How to make theme elements customizable in wordpress?
- How to add “Template” option in page attributes panel?
- Which html elements should be styled in wordpress theme
- Folder name for a pro version of a WordPress.org theme?
- Customize how a WordPress theme looks like in the Theme Selector
- How to set a page as homepage in stead of the newspages?
- Admin: sub menu doesnt display under apperance when activate my themes
- Widget Option is Missing
- WordPress Theme Validator?
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Template for landing pages
- Is it possible to have a theme that uses only one single page?
- underscores use of the article element on the page template
- Plugin does not work in custom theme
- html5-reset theme does not show the image [closed]
- Adding a gallery to my first theme
- Are seven additional image sizes are too many?
- What exactly is “wordpress theming”? [closed]
- registering a global template wordpress 6.0
- Theme Action to hook for one time only function [duplicate]
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- HTTP Error when uploading images over specific dimensions
- What is the difference between Twenty eleven & roots framework?
- iPad WordPress theme?
- custom Background not showing after upgrade?
- Rolling your own WordPress Themes
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- PHP Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) on line 124
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- Is it possible to echo a woocommerce prouct attribute discription?
- Child theme menu not appearing in Twenty Seventeen
- How do I remove header/page-title image in farvis theme? [closed]
- Is a multipurpose theme an alternative to modifying or creating a theme from scratch?
- How to link post image to post link?
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- On wordpress, how do i require specific dimensions from user uploads only
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- Modify comments_popup_link output
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- Trouble creating custom sanitization function when uploading video files
- What’s the policy for building a theme that doesn’t support widgets/menus?
- RSS feed url showing page not found. How to solve it?
- How to convert that page to a wordpress template? [closed]
- Toolbox theme using printif statement – help needed understanding code block
- php file child theme directory not overriding parent theme php file [duplicate]
- How to Create a Multi Purpose Theme?
- Custom Single Page Portfolio Theme [closed]
- getting id of page
- What is the point of using the front-page.php template? [closed]
- Is child-theme required when modyfing “Appearence > Editor”?