You can require the wp-load.php file in the existing page…
<?php require('wp-load.php') ?>
This will basically load the WordPress installation and allow you to access each of the functions (and the loop) as you normally would.
Related Posts:
- What is the preferred way to add custom javascript files to the site?
- How to add posts to custom menus?
- Should I use set_transient or update_option?
- Custom Taxonomy Tree view
- Best practice way to implement custom sections into a WordPress theme
- How to customize wordpress login/register pages?
- Add a preview to a WordPress Control Panel
- Change text of twentyseventeen_edit_link()
- How do I remove RSS feeds from themes?
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Style.css redirects to 404 Page not found
- How to add suggest plugin to theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Relative Time On Posts
- Prevent update check for specific theme
- De-registering parent style sheet css recommended?
- inserting custom li class to wp_list_pages
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- Free starter theme to make mobile websites? [closed]
- Set a static front-page as a landing page programmatically
- WP Customize refresh problem
- How can I display/hide certain content based on a Theme Option field?
- How can I make that when I clic on one of the menu items, that page shows only posts with the same category?
- Hide header texts (Title & Tagline) in custom-header.php
- Why an arugment is missing in wp_get_attachment_image_attributes?
- Archive page doesn’t work
- My javascript jquery won’t work?
- Where to hook settings api init
- How to add “Template” option in page attributes panel?
- How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?
- How to enable thumbnails in RSS dashboard widget
- How to check if a WordPress core block is active in sidebar
- approach to pass additional parameter in post URL
- How can i attach the attachment-ID to the user profile image?
- How can I fetch the WordPress cart errors normally displayed in woocommerce-error?
- wp_remote_get times out on api request but jquery GET and postman work?
- Folder name for a pro version of a WordPress.org theme?
- Remove settings if theme is deleted?
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- what is the difference between uri and path?
- Derive child theme from separate theme
- How to change footer or for different kinds of users in wordpress?
- How to Download Minimum Requirement of WordPress (Not Themes )
- Create a child theme from multiple themes
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- How to determine (via php) if site is using a static home page?
- Migrating to WordPress – but how will it do “structured” data?
- Theme development – Automatically menu creation
- How to enqueue a script which is type module without using script_loader_tag filter?
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- How to generate a hierarchical list of all pages and child-pages using a regular query?
- Should is_active_sidebar() always be used around dynamic_sidebar()?
- pre_get_comments or the_content filter
- using part of a theme in another theme
- How do I include a partial from a directory below a wordpress theme directory?
- Add a field to the taxonomy editor?
- the_category() tag not styling HTML or CSS
- Remove/Hide a Widget on a Custom Template
- WordPress Comment spam issue
- Is it possible to have a Theme with built-in physical page files?
- header, stylesheet not being read
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- Setting thumbnail featured image size not working properly
- showing all recent posts in theme
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- How to substitute old wordpress menu by wp 3 menu the right way?
- Why my theme option not working?
- How to use multiple check-box values to work in a function and insert values in database
- How to make a function occurs for one time?
- Catch the moment when theme is deleted
- Attribute form NumberControl doesn’t update when I update page before it lose its focus
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Next and previous post link shows error in first and last post
- create loop for the_content()
- how to change footer content for certain pages only
- function ‘theme_settings_page’ not found
- Should I use template files or just use conditional tags in index.php?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- Media & Plugin screens stall
- Need help with adding custom wordpress menu and sub-menu
- get currently showed author ID in theme functions.php
- Is wp_mail plugin territory?
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- How to load mediaelement.js in theme template?
- Create a variable with string, array or multiple values
- How can I include the js and css file of my custom theme dynamically in header.php
- WordPress Blog Page displaying nothing
- Full width thumbnail
- using theme check plugin to remove waring and errors from my theme
- Suppress the_content filter in a nested loop
- Set start page depending on screen width [closed]
- How can I change the title of the Home link in the navigation bar?
- URL conflict with a ‘Single Page Layout’
- loading custom.js file after jquery is loaded
- How to determine if it is legal to remove credit link from theme?
- Add option for administrator to submit link
- Display recent posts on front page
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]