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:
- remove_action on after_setup_theme not working from child theme
- get_template_part vs action hooks in themes
- Issues with title-tag and document_title_parts
- Remove Actions/Filters added via Anonymous Functions
- 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
- Check if post is being published for the first time, or is an already published post being updated
- Display random categories on the front page (Finding and Editing Theme Functions)
- How to use the do_action () with parameter
- Perform an action when post is updated/published
- WordPress Theme Update Action?
- Extract image from content and set it as the featured image
- How to get woocommerce inventory status [closed]
- Do WordPress’ cron’s clean up expired transients?
- add_action in a function, is it possible?
- TinyMCE custom styles remove class when switching styles
- Using a private method as an action callback from within a class
- Refresh page after form action
- How to restrict actions and filters “properly” by conditions
- How to count number of functions attached to an action hook?
- Add action hook conditionally – only when home.php in use
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- Using add_filter() in Widgets
- How can I tell if I’m on a login page? [duplicate]
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- Organize functions.php
- How to override functions.php in child theme?
- 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
- How to hook into the quick edit action?
- Reuse variable in hook callback
- Add inline css to theme
- Dequeue Scripts and Style for Mobile not working?
- Call to undefined add_action() in theme’s functions.php
- Displaying Widgets
- WooCommerce add_action hook results in 500 error
- Template tags vs get_template_part() vs functions.php
- Dequeue script in template isn’t working
- Automatically Add Specified Value to Attachment Metadata upon Upload
- Can’t Update function.php after writing short code
- Add external js file to footer with id
- Changing itemprop from logo to image on custom logo?
- How to add background image control to page admin controls?
- 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?
- How would go about if I just want a temporary function?
- How to call custom function from functions.php in site-wide template files?
- How to use thumbnails in gallery?
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- Passing arguments to my function with do_action and add_action is not working
- Pass parameters to function through an action
- Is there a way to add a class to non current menu item?
- Accepted arguments value in hook functions
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How to select a page within admin?
- How to manage arrays from custom functions stored in functions.php?
- How do I pass arguments for multiple functions hooked to a single action?
- Which action hook to use for function?
- How to use Internationalized human_time_diff() function in Chinese?
- is_dynamic_sidebar always returns true while using Jetpack visibility
- Custom HTML in specific category single page and its descendant categories
- How to enable template page only for a post id page
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Modify a function without editing template
- Add caption functionality to custom WordPress theme
- Don’t delete a page if it holds users
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- 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)
- Get_template_part inside a folder
- 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
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- How to get postId from the argument $block when register_block_type()?
- WordPress is adding pagination for all pages not only for blog page, How to remove pagination for all pages except blog/posts page?
- HELP: Code To Check Status And Write Debug Entry
- delete_term is not working properly with add_action()
- Setcookie not setting cookies anywhere except admin
- How to get variable from other function inside class function using add_action for Ajax call
- Function attached to cron job not running but will run if called manually
- How to use webpack in WordPress theme? I want some scripts to load in the footer, some in the header and some with script parameters
- How can I able to exclude ‘Category’ and ‘Tag’ slug from the URL in WordPress without reloading to new site?
- Submit CF7 form programmatically with WP-Cron?
- disable a specefic sidebar when user is log out
- wp_update_post breaks my function
- is there a list of actions on WordPress
- Remove Actions/Filters added via Anonymous Functions
- No src and sizes attributes present on WordPress thumbnail images; the smallest image size is loaded irregardless of viewport size
- add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped