[DiscordArchive] Friends, which tool do you use to open .db2 files?
[DiscordArchive] Friends, which tool do you use to open .db2 files?
Archived author: Guybrush • Posted: 2023-01-04T15:26:11.800000+00:00
Original source
ah, you're gonna have a bad time!
Archived author: MaxtorCoder • Posted: 2023-01-04T15:27:03.816000+00:00
Original source
Learn how to code and <:EZ:860244700732325928>
Archived author: Guybrush • Posted: 2023-01-04T15:27:06.056000+00:00
Original source
```
...
$args = array(
'post_type' => 'post',
'orderby' => 'rand',
'posts_per_page' => 5,
'cat' => <you_need_the_dungeon_category_id_here>,
);
...
```
Archived author: Guybrush • Posted: 2023-01-04T15:27:27.343000+00:00
Original source
replace the `<...>`
Archived author: Guybrush • Posted: 2023-01-04T15:27:35.050000+00:00
Original source
and don't include the `...` obviously
Archived author: Guybrush • Posted: 2023-01-04T15:28:31.079000+00:00
Original source
I was gonna tell you to use wp-cli to find the category id, but I see that probably won't help you
Archived author: Guybrush • Posted: 2023-01-04T15:29:44.573000+00:00
Original source
your wordpress instance should let you see your categories, path similar to this `wp-admin/edit-tags.php?taxonomy=category`
Archived author: blacknightt • Posted: 2023-01-04T15:30:12.897000+00:00
Original source
```
function wpb_rand_posts() {
'cat' => $cat_id
$the_query = new WP_Query( $cat_id );
if ( $the_query->have_posts() ) {
$string .= '<ul>';
while ( $the_query->have_posts() ) {
$the_query->the_post();
$string .= '<li><a href="'. get_permalink() .'">'. get_the_title() .'</a></li>';
}
$string .= '</ul>';
/* Restore original Post Data */
wp_reset_postdata();
} else {
$string .= 'no posts found';
}
return $string;
}
add_shortcode('wpb-random-posts','wpb_rand_posts');
add_filter('widget_text', 'do_shortcode');
```
Archived author: Guybrush • Posted: 2023-01-04T15:30:24.934000+00:00
Original source
nope