Is it possible to query a category with specified posts?

You should use a custom select query: $querystr = ” SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) LEFT JOIN $wpdb->terms ON($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id) WHERE ($wpdb->terms.name=”sounds-flavors” OR $wpdb->posts.ID IN(12345,12678)) AND $wpdb->term_taxonomy.taxonomy = ‘category’ AND $wpdb->posts.post_status=”publish” AND $wpdb->posts.post_type=”post” LIMIT 3 “; Take a look here: https://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query Regards

Can we create a shorcode to move next page?

It’s not completely clear what you want to do, but it looks like you’re looking for the built in <!–nextpage–> shortcode, which allows you to cut a post in two or even more pieces. If you control your theme you can style wp_link_pages to change the link from the default ‘next page’ to something like … Read more

Create shortcode to display specific post in relationship current date

Try this use your desired name for function names : function main_func_name() { //Date parameter $currentDay = date(‘j’); $currentMonth = date(‘n’); //wp query to show saints name $con = mysqli_connect(“localhost”, “mydb”, “mypassword”, “myuser”); if (mysqli_connect_errno()) { echo “Failed to connect to MySQL: ” . mysqli_connect_error(); } $sql = “select * from santi where numero_giorno= ” … Read more

Shortcode Function – Can’t get anything else to return after running shortcode within shortcode

You shouldn’t call return twice in a function, as it isn’t supported and only the first return is evaluated. What you can do is assign the first do_shortcode to a variable and return the variable concatenanted to the second return. function youtube_media_shortcode() { $shortcode_output = do_shortcode( ‘[x_video_embed no_container=”true”]<iframe width=”560″ height=”315″ src=”‘.get_field(‘youtubeurl’, ‘option’).'” frameborder=”0″ allowfullscreen></iframe>[/x_video_embed]’ ); … Read more

WordPress Shortcode to display featured images only

The plugin you’re using Display Posts Shortcode does include a parameter to disable post titles: include_title=”false” So your shortcode would look like this: [display-posts category=”OSH” include_title=”false” image_size=”standard”] Hope that helps.