You can include wp-load.php (in the root WordPress directory). This will give you access to the WordPress functions. Note that you can also load wp-blog-header.php, it loads wp-load.php eventually; wp-load will be lighter weight in the end.
Related Posts:
- How to update custom fields using the wp_insert_post() function?
- PHP/Manual use of images? – 2 Questions
- Set Primary category using the Yoast SEO plugin
- wp_insert_post not working
- wp_insert_post() is returning the correct post ID, no failure, but the post content does not get updated
- Can’t get wp_insert_post to work
- Auto-Select Parent Category as Primary
- Don’t insert if permalink is the same?
- Use of wp_insert_post and parameters
- Getting error when using wp_insert_post()
- wp_insert_post() with HTML tags using PHP
- Add new post in existing categories using wp_insert_post
- get post id from wp_insert_post for get_template_part
- Returning all values from foreach in function php [closed]
- Generate CSV file and add data as a new wordpress custom post
- how to add datas in taxonomy to post with wp_insert_post
- How can I pass php code as a content while publishing a post
- Meta inserted through wp_insert_post gets messed up
- how to call other plugins once custom post has been inserted
- Adding user meta to post meta wp_insert_post() not working
- Front end post submissions do not get submitted in the category
- Post content not showing some content
- upload images on front by user using form
- Create and publish a new post every Monday, listing the post titles and links to the posts published during the previous week
- PHP – Multiple variables in insert post array
- Can’t send form data to wpdb when URL has query string
- Can’t insert into a database wordpress
- Where to get information about array fields in $_REQUEST?
- Is it safe to use $_SERVER[‘REQUEST_URI’]?
- Namespacing WordPress project according to FIG standards
- Redirect to Page after Post Submit
- automated tests as a user?
- WordPress Wysiwyg Content not being displayed
- Problems with function on function.php
- Want to create Child theme, but already edited Parent theme css files and some php files
- Adding code to child theme functions.php to override parent theme behaviour doesn’t work
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- WordPress: Remove link in the_tags
- How do I display the function the_content in this loop?
- Set WP_MAX_MEMORY_LIMIT higher than PHP.ini memory_limit
- Custom category code not showing all posts
- Displaying NextGen Gallery using value from meta not working
- Apache Fallback instead of add_rewrite_rule
- Correct folder permissions?
- Link posts to pages for breadcrumbs
- Can I install/embed WordPress on a ‘single page’?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- How can I add extra word in permalink when someone click download button?
- Why WordPress won’t update via VPN?
- Create custom permalinks to show Custom Post Type’s relationship?
- Add user ID to woocommerce customer dashboard
- Converting Y-m-d to a date with a Month name? [closed]
- Code Executing Too Late?
- New walker for walker_nav_menu to change inside container data
- Isotope Drop Down Categories Filter Function
- Getting users with a specific meta data and then querying their posts?
- Making your own custom post views count
- How to allow download url redirection only if user logged in WordPress site?
- trying to get wp_get_attachment_url to output clickable link
- Conditional multidimensional arrays and array_map
- A $_POST should occur when submit form but is not?
- Help Fallback (thumbnail)
- Select through customizer the template part to be viewed
- difference between sanitize_email ,FILTER_VALIDATE_EMAIL and input email type in html5
- Conditional featured image with youtube thumbnail
- How to change thumbnail src attribute?
- Get wp_current_user_id using PHP and MySQL
- Can not call .php files after switching to %postname%
- WP Container Displaying Only on First Page of Archive
- Hook on file upload
- Update Images after edit via php
- Drop down question
- custom mailchimp form using HTTP API
- How to get the url of the entry in which an image belongs
- ACF under category name in shop page [closed]
- WordPress Recent Posts – Loop
- Changing default WPMU emails to be send thorugh Campaign Monitor Transactional emails
- Can’t add to time? [closed]
- not able to access $_POST on backend profile update
- WordPress Single Post Pagination Numbered and Navigational
- Displaying 3 Category Posts differently
- How can I export data without using any import/export plugin
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Post formating on Home page
- Category – “No content found”
- How can I correctly POST to a WordPress page?
- WordPress – Image href for home menu nav not working
- Search box background on a different page template
- Cron job to call php to email last 24 hours posts
- Load php function with AJAX on modal window
- Hide page title
- Edit Image/Image Details – Replace button missing
- get user role. parameter id return type string [closed]
- How to improve wordpress site creation process to increase productivity.
- How to disable page create for custom post type, but allow a page with the post types slug to be created?
- WooCommerce Modal Fly cart on add to cart – With AJAX
- /page/2/ redirect to 404
- How can I trim /page/ URL with PHP in WordPress
- Adding date and time to the same request