You want to include wp-load.php
at the beginning of your script/page like this :
require_once("/path/to/wordpress/wp-load.php");
You then have access to any WP functions. To manipulate the DB directly, have a look at wpdb
.
Related Posts:
- How to use nonce with front end submission form?
- Uploading video to google drive via frontend [closed]
- How to attach a uploaded video to post from front end
- ACF: Only get first row of a Repeater Field
- multiple taxonomy select display only one in front end
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- create front-end users post list by specific category
- Wp_editor doesn’t send the required data
- Plugin: Front-end Editor – User role specific editable content?
- Creating plugin with front-end pages
- Bootstrap 4 Carosuel with ACF Repeater field
- HELP! Frontend User Profile Edit Won’t Update Email
- Post from front end form to post_meta
- Front end post submissions do not get submitted in the category
- How to set up an auto delete post?
- Missing items on page
- Setting field not saving on front-end
- How to improve wordpress site creation process to increase productivity.
- Frontend redirect after delete post in wordpress
- Best Practice for PHP
- Adding “Remember Me” in custom login
- Using wp_send_json to return HTML
- WordPress URL Rewrite not working
- Custom HTML structure in wp_list_categories
- How to protect own PHP code from WordPress updates
- 500 Internal server error after changing php version
- show limited tags in an article
- WordPress media upload “HTTP error”
- Theme Customizer – Dynamic CSS PHP File
- Javascript code inside “” in core WordPress files .php
- Error: array_map(): Argument #2
- Exclude posts from homepage having a specified tag
- woocommerce – hide payment method in new order email
- Do my defines need to be unique?
- Change output based on text field value
- Function not working at one place
- How can I load a PHP page without using a Template?
- Multiple options not staying selected after saving
- Where to place PHP code that inserts (or doesn’t insert) menu item?
- Where to find documentation for CPT block template? (PHP)
- Sort the result of the main Query in shop page by a custom taxonomy
- WP Post-Thumbnail
- Responsive Header for Phone
- Programmatic Login from 3rd Party site
- Save Search System
- Media upload ERROR Message Showing in BOTTOM of the page wordpress
- Setting default category base on theme activation
- parts of url disappear when using # inside href=”” [closed]
- Help with Sub and Sub-Sub Navigation
- WordPress Woocommerce – Product Type [closed]
- WordPress installation permission errors
- Custom field values to taxonomy terms
- Why does wp_head hook my functions to the beginning of my source code?
- Noscript not working as it should in wordpress site
- Pass argument to event hook
- List posts that don’t have a specific tag?
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- wp_insert_post: array only. wp_update_post: array|object (?)
- What is the difference in the WP memory limits?
- Content filter won’t work
- How to retrive the text : No movie by this actor
- Is the 404 page automatically displayed if a loop returns nothing?
- Get related product based on subcategory selected from category id with ID 142
- How to remove custom style from source?
- Customizer: How to change Header Image description
- Fetching Initials of the Commentator in the WordPress Website
- PHP Helper Class to create shortcodes
- Why won’t this wpdb get_results query return results?
- Why doesn’t global $wp_query not get hooked?
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- How can I assign separate stylesheets to different pages?
- Checking page before applying image restrictions while uploading
- AWS Lightsail WordPress – connect to database on instance using mysqli
- Create category after theme setup and modify the default one
- Using wpdb to connect to a different database is not working
- PHP error on local server install
- how to use 2 index.php file One for mobile and one for desktop
- ACF under category name in shop page [closed]
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- Using $this with an anonymous function in filters
- Dynamic_sidebar load in string makeup
- Post Meta statement?
- Prepared DB Query from _POST array
- How to include non-users in wp-admin redirect?
- Add disclaimer before certain posts and pages
- Use Custiomizer to setup meta theme color tag
- How do I routinely extract the thumbnail of the most recent post?
- Click to expand menu
- WP_Post is not from correct array
- Showing custom field contents without listing description
- Using ‘array’ method in wp_nav_menu causes it to disappear
- How to add together (get the sum) a field from all author’s posts
- two body tags on all WP pages regardless of theme
- Load php function with AJAX on modal window
- Display biography post for today’s birthday person
- please on skin.php on theme wordpress option fix on theme option to not print empty variables and empty
- How to cut a section of a URL from a string with a regular expression?
- Custom nav with bootstrap dropdown
- Limit a search box by CPT + taxonomies, in only one page