• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

Widget to show 1 singel page

Hi!

Need widget to show 1 of my pages, is there a widget that
can show only 1 page ?
0
team2005
Asked:
team2005
  • 2
  • 2
1 Solution
 
Jason C. LevineNo oneCommented:
If the content on the pages not going to change, why not just use the text widget to publish that content?
0
 
team2005Author Commented:
Hi!

Page can be changed, so need a widget to show 1 page.
0
 
kumaranmcaCommented:
Hi,

There are two ways implement.

One
All widgets get from get_sidebar(); function. So you create one page template and comment your get_sidebar(); function and assign page templates for no need widget pages...

Two
check the condition in sidebar.php file..based on current page id.

$current_page = $wp_query->get_queried_object_id();

//15 your widget page id...
if($current_page==15){
      //shown your widget blog this page...
}




0
 
team2005Author Commented:
Found a widget for this
0
 
kumaranmcaCommented:
ok cool...may i know that
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now