Try
require('inc/test.php');
instead of
require('/inc/test.php');
Remove / before inc.
Related Posts:
- get_template_directory_uri pointing to parent theme not child theme
- Include PHP file in Content using [shortcode]
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- What is the most efficient method for loading widgets in functions.php
- PHP files included in functions.php don’t seem to work
- Include files in child themes, declare in functions.php
- Calling a Function in Functions.php from an external PHP script
- Automatically include all php files in a child theme directory
- Impossible to call wordpress function inside an include?
- Can I have an additional functions.php file in WordPress?
- wp_star_rating() – Adding a 5 star rating system to theme
- Unable to point the child theme directory even using get_stylesheet_directory()
- Can I include a custom PHP function in a WordPress function?
- file.php not loaded?
- Why should I use get_template_directory() when include files?
- WordPress functions.php conditional include another functions file
- Including admin-options.php file in Child Themes
- Undo a function that is not (seemingly) hooked to an action?
- paginate_links() don’t properly work in search.php?
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- WordPress function like is_category for subcategory? is_subcategory?
- How can I get $id variable in widget’s form function?
- Using a private method as an action callback from within a class
- Auto close (hide) custom metabox / set default state
- How to activate “Description” metabox for menu item programmatically?
- Make WordPress size and name images for Retina.js
- Pinterest Integration Using functions.php
- Adding WooCommerce to a Custom Theme – not working [closed]
- WooCommerce add_action hook results in 500 error
- Advice: Template structure – php blocks in sidebar or someting else?
- Changing itemprop from logo to image on custom logo?
- wp_get_post_terms() returns WP_Error in functions.php but in template it works
- Move jQuery and Migrate to footer?
- Make menu structure match page heirarchy on page parent change
- Change Rating range in Link Manager
- function to erase swear words
- str_replace function in theme
- Problem only while using require_once() within functions.php
- How to force field validation first, then its values saved durning edit profile?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- How to properly remove style for non logged in and front page only
- WordPress converts media extention URL automatically to video player
- How do you Permanently Delete Sidebars
- Allow Contributor to edit their own posts after Adm aproval
- help I changed one currency in woocommerce and everything is ruined [closed]
- How to run a function in every page, every device
- Which function required?
- How to ignore posts in pre_get_posts?
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- New functions in separate directory — better, portable way
- WordPress Migration error phpupdate_option is not a function
- Custom Query Not Paginating
- Solved: redirect to another page using functions.php
- Getting the teaser text without overriding global variables
- Ajax resetting my global variable
- Problem enqueuing scripts on not single posts
- referencing the current user in a page i created in wordpress
- is_main_query() always returning false
- How to show ACF value under post/page title in wp-admin
- Undefined variable issue for wp_get_attachment_image_url
- Counting posts and trigger it [closed]
- ACF Flexible in TCPDF
- How do i tweak my wp Post title base on category of the post
- Why isn’t comment validation working?
- modifying every other element’s class inside while loop
- Adding Custom Body Class for Page: Shop
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- Change ‘Categories’ to ‘Topics’
- Is it possible to use ‘wp_insert_post’ function within a for loop?
- save_post function keeps triggering: Warning: array_map(): Argument #2 should be an array… when restoring from trash
- More than one search results page template for two searches on site
- Code I am placing in the wp_footer is going outside the entire HTML frame!
- Restoring pages in wordpress
- Redirect after login to current URL
- Restrict certain roles registrations by domain
- Replacing term/taxonomy archive pages with search queries
- Return ACF Field value function
- Different body image backgrounds on different pages, posts and categories
- Hide certain post types from editors
- Language switcher for subdomains
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Force changing the Site Title and add link
- create submenu page – error function not found or invalid function name
- How to add a class name to the ancestor of a post?
- Undefined offset: 2
- is_user_logged_in() isn’t working
- Retrive post by tags PHP code
- Sorting date results from a query
- Using is_plugin_active within functions.php
- Button generate a random URL [closed]
- Shortcode to include PHP file, pass various parameters to include?
- Add custom css to theme
- How do I add functionality to images?
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- Load script only on selected Pages
- Using input_attrs() Multiple Times Within One Customizer Control