Are you wanting to replace the template file for the entire page or include a certain feature? As @JacobPeattie mentioned in the comments you may want to check out template hierarchy for replacing the whole template.
The get_template_part() function can be used to include a template part into another file. I think that’s your use case here. The problem appears to be where you are trying to add the template. I think you’ll want to add the following to page.php
as that is the default template for pages. I find that the Query Monitor plugin has a useful feature of displaying which template is being used.
// add to page.php where you want your forms.
if ( is_page( 'faq' ) || is_page( 'FAQ' ) ) {
get_template_part( 'Servicedeneme' );
}
Related Posts:
- get_template_part vs action hooks in themes
- Issues with title-tag and document_title_parts
- Is it ok to use a function to output the text domain name in a wordpress theme
- Trying to use add_action and do_action with parameters
- How to use the do_action () with parameter
- Perform an action when post is updated/published
- Do WordPress’ cron’s clean up expired transients?
- add_action in a function, is it possible?
- TinyMCE custom styles remove class when switching styles
- How to count number of functions attached to an action hook?
- How can I tell if I’m on a login page? [duplicate]
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Overriding core functions in child theme
- Change meta tags programatically
- Convert hyphen to underscore in permalinks
- Using get_terms for custom taxonomy in functions.php
- Fatal error: Call to undefined function add_action() – an untouched problem
- Change parent theme file function in child themes functions.php
- Reuse variable in hook callback
- Dequeue Scripts and Style for Mobile not working?
- Displaying Widgets
- Automatically Add Specified Value to Attachment Metadata upon Upload
- Can’t Update function.php after writing short code
- How to update feed only 2-3 times a week (for Feedburner email)?
- Best Practice for Syncing Local Development With Staging Development [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Show excerpt for only first post in query
- How to add css class to image attached in all the posts?
- Passing arguments to my function with do_action and add_action is not working
- Is there a way to add a class to non current menu item?
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How to use Internationalized human_time_diff() function in Chinese?
- is_dynamic_sidebar always returns true while using Jetpack visibility
- Override a theme function in a child theme?
- How do I add Bootstrap and LESS to my migrated WordPress site?
- Pulling Twitter RSS feed not working as expected (fatal error)
- Which action does wp_update_user triggers?
- Use register_setting() in a loop
- How can I get my Script to work on the Login page?
- Trigger a custom function when option are saved in admin area
- Add dynamic links in WordPress custom theme
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- admin-ajax.php + load-scripts.php hanging for minutes
- Redirect to another page if the user is logged in when pressing again the login button on menu bar
- Unique sequential reservation code
- Functions.php Problem
- Replace function in a child theme
- Difference b/w Simple function call & do_action call
- jQuery does not work
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Override the WordPress core function wp_referer_field
- Set Taxonomy based on post status
- Control the srcset much more (not all sizes in it each time)
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- AMP – Change rel=”canonical” from functions.php [closed]
- Scripts not loading when using the wp_enqueue_scripts action
- Excerpt for pages not showing
- Some questions about how proper add 2 CSS file in a WordPress theme?
- current_user_can comma list vs OR (||) list
- Functions php shortcode for displaying main menu with no child items
- PHP 7.1 | Warning: A non-numeric value encountered in
- Add back in child theme what the parent theme removed with remove_action
- login_headertitle is deprecated since version 5.2.0
- 400 Bad Request – JavaScript App calling Custom wp-json endpoint
- I can’t add CSS with functions.php
- WP Customizer API loaded into functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- Changing where my author box is printed
- Is this an acceptable practice for WordPress theme development?
- Problem with custom function when I go back with the browser
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- How to use wp_enqueue_script properly?
- Load templates, pass arguments, and render output from functions.php
- Using get_terms for custom taxonomy in functions.php
- If has action not working as expected
- How do you insert code into the sidebar?
- How Do I Unhook This Parent Theme Function?
- Test CDN link from function.php or wp_enqueue_script/style?
- How to customize archive widget only for cpt?
- How to show only specific category post by user role without plugin and restrict all other cats
- Why does echo on functions.php not yield result in source code?
- wp_footer hook causing text to show on bottom of page
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- Which method is more correct for removing WooCommerce Extensions menu item?
- True parameter but jquery register in header and not in the footer with wp_register_script
- Sending Messages Back to the Template After Processing?
- custom COOKIE on custom page
- Settings in functions.php used by a plugin
- Allow tags and attributes in post and pages content
- Do something when user creates post (that’s pending)
- Why functions metaboxes is causing White Screen in Admin [closed]
- Getting error on function.php
- HELP: Code To Check Status And Write Debug Entry