Skip to content

Instantly share code, notes, and snippets.

@SirLouen
Last active December 10, 2025 00:05
Show Gist options
  • Select an option

  • Save SirLouen/e21dd3cf0c9d548ac9b6b2c23852e459 to your computer and use it in GitHub Desktop.

Select an option

Save SirLouen/e21dd3cf0c9d548ac9b6b2c23852e459 to your computer and use it in GitHub Desktop.
Testing ticket #71999
{
"landingPage": "/wp-admin/edit.php",
"steps": [
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_term('Technology', 'category', array('slug'=>'technology')); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_term('Design', 'category', array('slug'=>'design')); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; wp_insert_term('Development', 'category', array('slug'=>'development')); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 1', 'post_status'=>'publish')); wp_set_post_terms($posts, array(3), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 2', 'post_status'=>'publish')); wp_set_post_terms($posts, array(3), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 3', 'post_status'=>'publish')); wp_set_post_terms($posts, array(4), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 4', 'post_status'=>'publish')); wp_set_post_terms($posts, array(4), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 5', 'post_status'=>'publish')); wp_set_post_terms($posts, array(5), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; $posts = wp_insert_post(array('post_title'=>'Post 6', 'post_status'=>'publish')); wp_set_post_terms($posts, array(5), 'category'); ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; for($i=1; $i<=6; $i++) { $post_id = wp_insert_post(array('post_title'=>'Tech Post '.$i, 'post_status'=>'publish')); wp_set_post_terms($post_id, array(3), 'category'); } ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; for($i=1; $i<=6; $i++) { $post_id = wp_insert_post(array('post_title'=>'Design Post '.$i, 'post_status'=>'publish')); wp_set_post_terms($post_id, array(4), 'category'); } ?>"
},
{
"step": "runPHP",
"code": "<?php require_once '/wordpress/wp-load.php'; for($i=1; $i<=6; $i++) { $post_id = wp_insert_post(array('post_title'=>'Dev Post '.$i, 'post_status'=>'publish')); wp_set_post_terms($post_id, array(5), 'category'); } ?>"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment