You need to first understand how WP theme hierarchy works , then only you will be able to find which file you need to define.
Below is the URL to understand how WP theme hierarchy works.
https://developer.wordpress.org/themes/basics/template-hierarchy/
Related Posts:
- How do I use WP_query with multiple post IDs?
- Disable Attachment Pages Completely
- esc_attr() right way and use
- Get meta_id along with meta_key and meta_value
- Show content if parent page has children
- Detection of theme being used
- Where to include php files in wordpress and how to refer to them later [closed]
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to order posts by modified date without using ‘query_posts’?
- How to add a featured image to a existing post via php?
- How to add 2 posts under another post? Formatting should be intact
- Get widget settings function?
- wp_handle_upload_prefilter valid date from input file
- Mysterious HTTP 404 header in my own scripts
- Archive dropdown styling not applied
- Browser title script ignoring is_page /else conditional [closed]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- Custom php page outside the scope of my theme
- How to get 2 or multiple custom post types in wordpress functions.php
- Interrupting $html.= ‘ for IF statement
- Asking popup for delete post in WordPress [closed]
- Instantiate class to be available to all plugin functions
- Implement toggle switch for theme options in settings API
- Show comments menu in dashboard only if the site has comment
- WP nonce invalid
- Creating a Multi-Level Associative Object Using AJAX
- Create WP_Query to search for posts by their categories or their parent/child categories
- add_action shortcut?
- My custom wp-admin php files stopped working
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Get page that displays all children of taxonomy parent
- WordPress default Search function inconsistent in WooCommerce Product Titles
- How WordPress reacts to a lack of memory of the server [closed]
- Function to capture a value and store it in a variable
- PhantomJS with wordpress
- My new button is in the wrong place
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- Call to undefined method – Download Monitor
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Show a different code on front page to other pages
- Make PHP work with HTML tags
- Which is the correct way to conditionally enqueue a CSS file?
- Admin ToolBar not being displayed at top of site
- Undefined method class::construct() when creating a plugin
- Why are the details of my todo not saving?
- Theme activation hook in php class
- How do I get an external php page to load using javascript
- Add title=”” to A PHP Code
- Remove extract from function
- Undefined offset: 3 in custom function
- Redirecting to a custom forgot password page
- How to pass current loop data into nested loop
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Proper way to use WordPress function with AJAX PHP file
- Custom navigation menu with awsAccordion
- Taxonomy term count
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- List of Events with Multiple Dates: Only NEXT Date
- Replacing WordPress Icons (menu,icons32, etc)?
- How to restrict shipping zone in a specific interval time
- Can/should we delete wordpress cron jobs with no action?
- Accessing an instanciated class
- Hide A Class and Add Custom HTML Code Using WordPress
- Rewrite rule don’t work in wordpress on xamp
- Display Visual Composer shortcode if a post belongs in specific categories
- Flushing the slug base has no effect and does not change
- Resize post thumbnail
- reset data of an array
- product_type_options get saved value [closed]
- Assign meta_query value to php variable
- How to create a widget with a populated dropdown?
- Move blogs but with applied filters
- Get user by meta data key and velue
- Add another role to a user when they click a button?
- Custom theme admin-ajax.php 400 (Bad Request)
- Using wordpress functions in class and change my code to OOP PHP
- Unable to pass arguments to function used in add_action
- How to limit functionality of a woocommerce plugin to only certain user role?
- What is the proper way to call a function (from functions.php) on a link click?
- Allow user to select location and then set cookie for location in WordPress
- Use PHP code in Menu Admin Section
- Front page not loading after updating PHP version (ec2)
- Querying posts based off a jquery datepicker
- set new link as permalink
- Repeatable field within repeatable group of fields
- Trying to customize wordpress drop down categories
- How to get WordPress Adminmenu items?
- Adding Media button to only pages
- Odd page behaviour after removing sidebar
- Display a list of users with avatar filterable with alphabets
- Parse error: syntax error, unexpected ‘echo’ (T_ECHO) in C:\xampp\htdocs\AttendanceSystem\resources\php\method.php on line 250 [closed]
- Adding php within a return statement [closed]
- Display post of specific category on page
- Adding multiple emails to a
- Warning: Cannot modify header information
- Displaying categories
- Differences and dis/advanages between: Fast-CGI, CGI, Mod-PHP, SuPHP, PHP-FPM
- Custom plugin doesn’t show in admin menu – when code added, displays an empty page