Looks like a syntax error, this should work for you:
get_template_part('template/sliders/' . $template1, 'home');
Related Posts:
- How to add elements to an empty array in PHP?
- Can I use the same nonce for multiple requests on the same page?
- WordPress and magic quotes
- Any guides on creating custom admin pages?
- Decrease file size upload in Media
- Customize default settings on new sites on multisite
- wp_delete_auto_drafts() deletes links in menus
- WP E-commerce: Showing 3 random products from current category when viewing product
- If Custom Field is empty don’t display div
- the_author_posts_link css class
- Question about repurposing WordPress 404 handler
- Design view breaking on Pages
- error_log is not working as expected in functions.php file
- WordPress template_include filter not working properly
- query if on page/2/?
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- How to display a value from a radio button in the options menu in wordpress
- How to debug php code in hostgator cPanel
- Web scraping using transients
- Parsing php string in jquery [closed]
- doing an ajax request always outputs 0
- What is the intended purpose of the _wp_attachment_context post meta key?
- PHP Script for last login time
- Why the JavaScript code is ignored from wp editor?
- Why does my callback function not work with this custom filter hook?
- Get and insert order email address to the PHP template inside HTML text
- Integrating PHP into Javascript to display map markers with Google API – problem with wp_localize
- Send an email to specific adress when button is clicked?
- Unable to write multiple values back to ACF user field – PHP
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- PHP version problem?
- Why Won’t My Inputs in a form with a Get method work together?
- Extend PHP regex to cover “srcset” and “style” attributes
- Sort by page information by Ascending Numbers
- Automatic Shortcode Creation with Custom Fields [closed]
- WordPress function when file is uploaded, deleted or edited
- Three Questions with Twenty Eleven theme
- add onchange to select in a wp form
- WordPress Customizer Default Image
- How can I include shortcodes within PHP?
- WordPress function and string as variable?
- Theme’s Options Page included with require_once *.php in functions.php not visible anymore
- Get access to variable from previous pageview, excluding ajax-calls
- Permission callback to check if user has application password
- Show current user posts only
- Hide posts if user is added to it WP_query
- how to display this functions?
- How to have different site identity logos on each page on Astra Theme [closed]
- Set default Database Storage Engine when creating tables with plugins?
- How to tag the main tag? [closed]
- Overide Variable in Child Theme
- Randomize Color Scheme Selection in Theme
- Plugin can’t write to database even though permissions appear correct?
- Why can’t I add a custom image in my navigation?
- Calling a plugin from a page template in TwentyEleven
- How to deal with a GET variable of ‘name’?
- Hi need update in my terms for other taxonomy
- I can’t set image ad fatured programatically
- Replace a single variable with add_filter
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- meta_query search names when they have middle initials
- Not work function add width and height at save post
- display condition based on post term and status
- Not able to remove caption shortcode from the content
- Display WordPress archive template page in 3 columns and not 1 column [closed]
- Only the first image uploads
- Inserting a class on before_widget if checkbox is checked
- Exclude multiple authors by ID – IF condition
- Trying to use a variable to set image width
- How to get all post status
- I want to hide “sold by” on certain pages with id page 43
- What is the correct way to search 3 custom fields only in WordPress?
- How to change order inside foreach using wp_enqueue_script?
- Redirect user to a custom url after logged in
- Adding extra data to shortcode attributes and pass it to JS with wp_localize_script
- The link you followed has expired. Please try again
- Allow Comments by Default for Multiple Post Types
- Related Posts: if there is no category use tags
- Cleaner ‘for each’ loop for registering scripts in functions.php
- HELP! Frontend User Profile Edit Won’t Update Email
- How to get User Avatar Image with link to Author and User name in Html Title tag?
- New database entry to trigger runing PHP/SQL query through link with token, without logging into the website
- How to make a parent page for author.php?
- How to get all users by user_login as a json_encode array?
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- How limit the width of a fixed menu-bar on scroll?
- show desktop version of website if button is submited
- Subheader title depends on post – change to static
- Use jQuery and AJAX to get HTML
- Make the text field in search form optional
- To call hook on a php external file
- Create new folder and upload files to custom folder via wp_handle_upload
- Set active class in a Php foeach
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Hide the content before the more tag in the “single page”
- Adding a Sub Menu Options Page WP Backend Menu. Whats wrong with my code?
- PHP code for link with text
- how to add display_name
- how to loop through blog posts in php
- how to display tables via ajax