First, the two “includes” you gave are going to the same file, so I’m not sure what two files you’re trying to judge against. Secondly, the jquery code is ran AFTER the page is processed, so the php includes will not be available to your jquery object.
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- Dynamic template serving, change theme_root using add_filter from current theme
- How to override the “inc” folder (or any folder) in a theme using child theme?
- Is it possible to access Gutenbergs reusable blocks in CPT block templates?
- Jquery in Child Theme
- Loading template files from a subfolder in my theme?
- WordPress as Backend, Laravel Front End: How to connect Routes?
- Want to have the Post editor remembering the last editing position
- Can I obtain differents links for different installed theme?
- When does WordPress wrap inline scripts in CDATA?
- WordPress ignoring specified template for front page. Why?
- Can I apply a WP theme to a specific custom page template?
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- Change Theme from Plugin based on query_vars
- How to add template to theme in WP
- Added a new template file to a theme – get Call to undefined function error
- Question about the way that wp_register_script works
- How to find a file in WordPress themes [closed]
- Display a specific dynamic sidebar widgets on a specific page
- My scripts-bundle.js file is getting sent to the browser as a stylesheet css file. Help!
- Child theme Page Template not loading
- Add js into a theme [closed]
- What’s the proper way to include inlined javascript-source?
- Creating new templates in child themes breaks layout
- Retina JS not working
- Get WordPress to use another custom “author.php” file (“custom-author-file.php”)
- JavaScript Files Registered in Parent Theme Won’t Load When Calling wp_enqueue_script() in Child Theme?
- Angular integration with homepage
- Twenty fifteen theme – change responsive menu condition
- Search form not finding content in template page
- display comment form for specific post id
- Selected template is not respected for home page in WordPress
- Putting two themes together to create a complete site
- Is there a way to upgrade a theme without losing custom templates?
- Need help with making a website where user can add products
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- how do i in ignore/disable/delete a javascript call from parent in child theme?
- What’s a good way to unenqueue all scripts for a single template page?
- Using JQuery to check for Rel Attribute of Image before Overriding It
- Getting a ‘slide down’ js panel implemented within WP
- Using the same database on another Subdomain
- Trying to fix a website that was built with WordPress and then taken off of it
- WordPress 5.1 upgrade has lost the parent theme JavaScript
- How to use only scripts from new theme?
- Conditional config WP_HOME/WP_SITEURL does not update bloginfo(‘template_url’)?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- Multiple sub directories for theme template pages
- How to remove the tripadvisor logo from the wordpress theme?
- Please help me clear my confusions about WordPress
- WordPress 2022 template, how to see the blocks added in post template on post edit?
- Can I use non-wordpress themes in WordPress?
- WordPress keeps switching back to empty template
- Removing a widget via theme editor
- Webflow Interactions on WordPress site?
- share wrordpress data between two shared hosts using REST API
- How do I bring a page template into a new theme with separate styling?
- 12 column grid layout
- Theme Dev | Convert Template to Theme
- Revamping a WordPress mirror site – and I don’t know where to start!
- What is the template file for topic layouts in bbPress?
- How to find out which template the HTML content comes from?
- Create a child Theme or custom Theme
- How to modify/ customise NextGen Gallery’s templates? [closed]
- wordpress template page Usage [duplicate]
- Overwrite template-tags.php in child theme
- JQuery Error in theme for .live is not a function [closed]
- What happens to bespoke page template references on theme change?
- How to add sidebar to homepage programmatically?
- Divi theme including javascript
- Get header/footer list for a theme
- Help!!! Old theme doesn’t load scripts and conflitcs with plugins
- Homepage not loading correctly, only after refreshing
- How to clone a theme template from within WordPress? [closed]
- How to remove pop up on website (css changes not visible)?
- Does WordPress maintain revisions for index.html template?
- what use have double styles in index.html?
- How to create a live demo page for a theme? [closed]
- Using chunk theme from wordpress.com on my own host
- Duplicate and change a Theme Widget
- Two Navigation Menus in Themes Produce the same menus?
- Make page template that is just an “include” of another?
- Being asked to update a theme that I don’t have
- I want to run different WordPress websites under the same database
- How do I change the scan depth for page template files?
- Can’t resize logo in responsive theme?
- How to translate a string that contains a WordPress sitename
- Is that a malicious code?
- How can my user make their own Blog/Diary
- my blog crashes ie7?
- Flexslider in child theme
- How to edit the default comment title?
- Route to custom file
- “Template is missing” install error on non-child theme
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Capcha not getting displayed
- Static front page displaying twice
- Changing appearance of WooCommerce product layout [closed]
- Can’t install vEstate Real Estate WP Themes
- Wrong theme being activated
- I am unable to remove “© 2022 My Blog | PopularFX Theme ” from footer [closed]