You must set it the ids in a array like:
if ( is_single( array( '11717', '11723') ) ) {
}
Related Posts:
- Custom SQL query to get List of posts with featured image url
- Using a javascript file to access a get posts array
- Get_the_author doesn’t return author name
- Only show first image in foreach loop
- Get the id of all images in a post
- array_rand not working correctly?
- Update value of a associative array with update_post_meta
- Pagination in single.php
- Limit the number of characters/words in an excerpt for a related posts section
- How to center all text body in single.php at once?
- LinkedIn Share Post Button
- Make sticky post with FacetWP
- Populate dropdown with Child Pages based on Parent Page chosen
- Unreadable pagination
- 200 Rewrite blog post links
- How to set a min number of words for a blog post
- How to use $query->set with post__in?
- Loop through categories and display posts title under each dropdown
- Get post id in a function when edit/add a post
- how do I get a specific post from a post with a subcategory in WP
- Automatically create child pages and grandchild pages when saving a (parent) page
- Reprinting tags with all attributes
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Second transition_post_status hook fired instead of the first
- How to store post ID’s in cookie or session to display the same posts later
- PHP Array Returning [object Object]. Tried existing answers results with no luck
- Which hook/action will help me solve my problem?
- foreach loop still echoes array
- How can I add extra word in permalink when someone click download button?
- Post + form + action + results on the same page
- Open post-content in archive page in a Modal box with bootstrap
- Exclude posts based on meta value
- remove post that has no content
- Checking array against author id in loop
- Loading index.php contents which located outside blog folder for post single page
- get post content of particular post by url
- Post repeating with infinite scroll
- Custom posts in different columns style
- Get children post mime type using parent post_ID wp_post
- How to show only subcategories in parent category not parent category?
- 404 error when I acess the second page of post-type
- Redirect to another page using contact form 7? [closed]
- Alter required message using comment form api
- Which PHP page is the Default Posts Page
- Advanced Custom Fields – display label and value only if value entered
- meaning of (array)function()
- retrieve post data and insert it in seperate static html page without WordPress
- Grouping posts by a custom meta value
- WP Insert Post and then go to post
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- Display related posts without a plugin
- wp_force_remove_style’ not found
- Counting Search results, and displaying the offset per page
- How to fix this warning:call_user_func_array() expects exactly 2 parameters, 1 given in D:\wamp\www\…….\wp-includes\class-wp-hook.php on line 286
- How can I access string value in an array?
- Count posts on multisite with blog id
- Function works everywhere, how to keep it to execute when creating a new post
- Making (and edit existing) posts with ID included
- How to use if statement in an array? [closed]
- Copy taxonomy terms from one post to another programmatically
- How to array only one key from another array
- single.php with different look by category
- Filtering a function’ output for a new continued function
- Parsing Menu Items and Blog Posts
- Pagination on Custom Post
- Get html data with javascript to php array and store to wordpress database
- $wpdb returns duplicate posts
- How to avoid duplicates when creating recent network posts
- How to show an entire post content and not also the excerpt?
- Get latest post from all categories except one
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Update post title from external file?
- Parse error: syntax error, unexpected end of file
- How do I create a numbered list with PHP? [closed]
- Why is an array created in a function hooked to customize register populated when customizer is loaded but not when the front-end is loaded?
- How to use array in function to get only value I want
- Error while setting role
- Get categories names as an array to use it in theme settings
- Automatically add images to a menu
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Load Posts on Click via Ajax into a DIV
- How to catch wordpress post ID when it’s published
- set post limit at load more ajax wordpress
- How to get the last category name of a child category?
- How to say if meta_value is greater than 0 in an array?
- How to use two meta_compare in an array?
- Warning: in_array() null given in PHP function
- WordPress query undefined offset in loop
- Check If Post Was Published More Than 6 Months Ago Using get_the_date
- Find Site ID From WP_Post
- WP_Query: getting posts where custom field exists
- Foreach loop inside an array_merge
- Loop over Array and get the distinct ids
- Array to string conversion on array_map
- Store metakey value as an array
- Increment paged on WP_Query
- How to access or parse key/values that have “string”
- If Array Values Match Another Array’s Values, Then
- Remove empty terms from array, sort alphabetically, update back to repeating field