<?php $post_id = 50; // assign post id
$queried_post = get_page($post_id);
if(is_home()) { ?>
<div class="product_title"><h3><a href="https://wordpress.stackexchange.com/questions/72514/<?php echo get_page_link($post_id); ?>"><?php echo $queried_post->post_title; ?></a></h3></div>
<div class="product_image_location"><?php echo get_the_post_thumbnail( $post_id); ?></div>
<div class="description_product">
<?php echo $queried_post->post_content; ?></div>
<?php } ?>
Related Posts:
- My custom template page not loading content inside it?
- How to detect if some page template has been selected
- Using pre_get_posts on true pages and static front pages
- Change admin startpage to Pages-page?
- Is it possible to set a page template on a dynamic home page (articles list)?
- Can’t change parent page
- Redirect “Sorry, you are not allowed to access this page.” to Home
- Custom /page/2/ template (different from index.php)
- Is it possible to have a landing page based on the visitors location?
- Making a wordpress page the index on the site?
- How to change only the home page / front page url on wordpress
- is_home() returns TRUE on page template
- Site url is not showing the home page
- How can I get the homepage from the loop?
- Any Ideas for Including “More Tag” with get_pages($args)?
- The concept of non-blog content
- Updated WordPress, now getting errors on site
- All Pages visible on the Frontpage
- Add a static page that links to homepage
- Can I change the “Home” text in the menu?
- Parent page shows no child content
- Displaying posts on homepage – Template Page
- creating single page with 2 columns while theme is 3 column
- How do I reference the front page’s parent Page object?
- Limit the amount of main pages
- How to make transition slider load before home page
- On the list of Pages, clicking to Edit a particular page redirects to the list of trash
- Different template parts when on different pages
- URL redirect to home page issue in word press site
- How to change default home link title?
- Static Home Page resets to Front Page
- Why my home page doesnt work?
- pages won’t show on front page using loop or pre_get_posts
- pagination does not work with query_posts. Help! [duplicate]
- Static front page with excerpt
- How to display text of a page in home or custom page?
- How to set a default page for load first time?
- How do I create a page that displays the homepage?
- For some reason my posts are not showing up on my front page [closed]
- Add infinite scroll to content splitted post
- When to use is_home() vs is_front_page()?
- Check if wp-login is current page
- How to get current page ID outside the loop?
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Custom templates not showing up in template dropdown
- Get page id by template
- Get the content of a specific page (by ID)
- How to get page title with the page ID?
- Show more than 20 items in pages or posts edit dashboard
- Allowing user to edit only certain pages
- How to display last 3 posts (recent posts) in a static page?
- How to give paged links custom title?
- How to set post slug when using wp_insert_post();?
- How can I keep the content of my pages version controlled?
- How to load javascript on custom page template?
- How to configure WordPress to handle 75,000 pages?
- How to update page status from publish to draft and draft to publish
- Check if is on child-page of a particular page
- Change page template programmatically ?
- Conditional tag to check if ‘page.php’ is being used?
- Customizing the URLs of WordPress Login and Sign-up Pages?
- How to disable posts and use pages only
- featured image as background image on pages
- Check IF is a “single product page” and Check the “role” for a Redirect
- A check for if is parent page, if has children, if has grandchildren
- How to load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- Proper way to get page content
- Access the same page from multiple urls (wildcard)
- Create a page without adding a page in the Database
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- What methods to use to create small, editable pieces of text for static pages?
- Show Default Editor on Blog Page ( Administration Panel )
- Hide page visual editor if certain template is selected?
- What is the difference between $paged and $page?
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- How do I convert a page’s title to lower case?
- Get top level page parent title
- How to add a specific widget to only 1 page?
- Restrict admin access to certain pages for certain users
- page title, parent tilte and grand parent title
- How to add jQuery script to an individual page?
- WordPress page edit does not save selected template
- Add a Page without header and menus?
- What is an alternative to get_page_by_title()?
- Password protect page with multiple passwords
- Create pages automatically if they don’t exist
- How to give image source in wordpress page editor?
- Find empty pages or pages which have less than x characters
- Allow only new sub-pages to be created
- Set page template automatically based on parent
- Editing Complex Pages in Visual Mode
- Link section within page with slash (/) and not hash (#) without reloading the page
- Creating a template using a specific slug name, for a page with a parent page
- Can I display submenus in groups, using wp_list_pages?
- Is there a default template file for child pages / subpages?
- Get wp_get_attachment_url outside of loop