consider to use:
$postspage_id = get_option('page_for_posts');
and then change the rspective line in your code to:
$leftSidebar = get_post_meta( $postspage_id, '_my_meta', true );
from: http://www.blog.highub.com/cms/wordpress/wordpress-front-page-posts-page-id/
Related Posts:
- Get previously visited page ID
- Get ID of “root-page”
- Get the correct post id for all post and page in header.php
- Get users between user ids
- ID of Front-Page
- Always Encounter Using ID in WordPress as a Final Solution [closed]
- Why does the page/post ID keep growing when i refresh the post-new.php file?
- How can I exclude a specific ID from this line of code?
- get page id’s – not get pages?
- get post by nav id
- Ad units Div-ids frequently changing
- Consequence of the post auto incrementer off?
- Subcategory IDs in relation to parent category ID switch case
- add anchor tags rel to thumbnails id
- get_pages gives wrong ID for blogpage
- how to get page id of a page using page slug
- Custom Walker: how to get ID in function start_lvl
- Echo author ID in author.php
- How to get home page ID?
- Get current post id in functions.php
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Creating a WordPress admin page without a menu for a plugin
- I put my blog on a subpage, how do I get page title?
- Get All IDs Of A Post Type Using WP_Query
- Get user id from email?
- How to change WordPress user ID?
- Are all ID’s used unique?
- Non existing blog pages are not redirected to 404
- On Category page, How can I get the category ID?
- How to get ID of images used in gallery?
- get post id in while loops outputting page id
- get the_title_attribute by id
- Get a post_id where meta_value equals something in a serialized meta_value field
- Return number of items in a table with post id
- Getting the wrong page ID
- How to get the post’s parent ID?
- How can I receive the image id using the media box?
- Is there a better, more efficient way to get the post id outside the loop?
- How to check the array of featured images IDs
- Getting current post ID in functions.php
- Create unique alphanumeric ID on wp_insert_post
- Do I need an empty page for a different blog page?
- How do I get blog posts to appear within CMS?
- Front page with registered query params in URL shows blog archive instead of front page
- Making audio playlist by getting page’s parent’s ID
- multiple blogs on single site
- Style category link depending on category ID
- Problem with Comment link in Blog [closed]
- How to call widget by widget’s id?
- Form that generates an ID for the customer
- create new users in db starting at what ID?
- How to I retrieve the ID from the Posts page?
- Crazy Question – Updating Post ID
- wordpress blog posts’s time
- Why would get_posts be ignoring posts with 2-digit ids?
- Use post ID in functions.php file adminside
- Customizing a blog page layout
- Is it possible to restrict access to specific pages in the admin area based on the page slug?
- Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)
- Get Image Having the ID [closed]
- How to display page ids as page slug names?
- Having trouble showing more blog posts on my grid blog layout
- Are post, page and category IDs unique to each other?
- Save attachment ID instead of URL in custom field
- Give a unique ID while saving
- linking to post outside the loop
- Get a post’s ID
- Determine if ID is page or post and query the ID
- Print_r displaying two different post->ID if placed in sidebar or single.php
- Show only Current category and sub category of custom post wordpress
- “Blog pages show at most” in setting not working
- How to fetch Email addres of an author via ID?
- Get post slug and match with menu item slug to change css
- Dynamic Bootstrap Carousel ID per widget on same page
- Display latest posts from a specific categories
- How do I get the Revolution Slider in the header on the homepage, but not the blog index page?
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- How to get the url of the entry in which an image belongs
- Get Current Post ID in WP Loop For GiveWP
- show scheduled posts in the calendar
- send page ID’s to another template
- Allowing Comments on Posts
- How to put the WordPress blog into theme
- Only get post_id [duplicate]
- How to show page content as well as post lists
- main menu page redirects to user ID
- WP DB Location for “Next Post to Create” Index Value
- Get id from database
- Issue with WP_Query (need a array of selected ID’s)
- Having single posts appear under the blog homepage and highlight menu items properly?
- Page updates appear in Preview but not live version?
- Using array page name together with page id to deregister script
- Overwrite URL on blog posts
- Get custom field from page, in a post?
- In reading settings posts are set to “blog” and I have page-blog.php but no posts
- Query parsing only author ids
- CPT posts in drop downed in meta box on page doesn’t return post ID
- thumbnail_width not working in wordpress most popular post plugin
- How to get post ID after removing that post?
- custom wordpress theme blog page always not showing the last two pages of the articles