Pages are static, timeless content that are unique from the regular blog chronology.

learn more… | top users | synonyms (1)

1
vote
1answer
241 views

Target a certain page within wordpress backend (admin) i.e. Pages > About

How can i progammatically see if the page that is currently open in the wordpress admin is 'About-Me'; I wish to run specific functions depending on the page the user is editing in the ...
0
votes
1answer
132 views

Add Content to Content()

The Question::: This is a strange question but I need to add content to content() in page.php. How do I do this? The Why::: You see there's a plugin that uses the [plugin id="1337"] and I am linking ...
4
votes
2answers
3k views

Get top level page parent title

How do I get the page title of the upper most parent page of the page the visitor is currently on? Let me describe: I have this page structure: Example Title 1 Example Title 1-1 Example Title ...
1
vote
1answer
784 views

Add a new page to wordpress programmatically

Is there a function in the wordpress api that lets me programatically add pages ? something on the lines of : add_page($title,$content) Is there such a function ?
2
votes
2answers
719 views

Check to see if page exists problems

I've created a class to dynamically create pages. I'm checking to see if the page exists by comparing the new page's title to post_name. The comparison seems to work ok, but even if there is a match ...
2
votes
1answer
134 views

When I split a large post with <!--nextpage-->, how can a search locate users to the correct page?

I have a large post split with <!-- nextpage -->. A term resides on page 50. When I search for the term, I land on page#1. Q: How can the system auto-forward me to page#50? Thanks
1
vote
2answers
745 views

Why aren't my posts/pages showing up in my WordPress Theme?

i built a custom wordpress theme, and for some reason don't know why the posts/pages are not showing up in the theme, but they show up in all other themes. Here is the index.php code: <?php ...
10
votes
3answers
4k views

Custom Post Type Slug / Page Slug Conflict - Prevent use of reserved slug on page save?

I have a custom post type of portfolio (slug portfolio) in my theme and all is working well except one thing. When people create a page with a slug of portfolio, eg: example.com/portfolio, the theme ...
0
votes
3answers
1k views

How to add meta boxes to Pages

I'm almost complete whit my wp theme an I'm now translating it with the WPML plugin. This is working out great (even all my custom post types and meta boxes :) ), but of course there have to be a ...
0
votes
2answers
678 views

Is it possible to check for shortcodes on a page?

Is it possible to check what shortcodes are used on opened page using PHP/WP functions? Why do I need it? I have special div ("#page-navi") on every page and when user uses [portfolio] shortcode I ...
0
votes
2answers
238 views

Modify pages widget and make a plugin?

I would like to make a plug-in that adds a widget. I would like it to be based on the current pages widget but add the ability to select either include OR exclude by drop down or checkbox then list ...
0
votes
1answer
1k views

wp_nav_menu: output featured image of each page listing

Context: I am building a portfolio index where I can sort the individual project links in my sidebar by priority of appearance. I've successfully done this using the wp_nav_menu(), where each project ...
3
votes
2answers
1k views

How can I programmatically create “child” pages on theme activation?

I know how to create pages automatically when a theme is activated, but I need help to figure out how to also programmatically create child pages at the same time. For example: - Page 1 - Page 1.1 ...
0
votes
1answer
197 views

How to preview a page instead of a category?

Is it possible to make the code below preview a page instead of a latest category post? <div class="one_third_last"> <h2>Gift Vouchers</h2> <div class="entry"> ...
0
votes
1answer
119 views

Parent/Child pages

I find that the parent/child pages in the "Pages" area of WordPress has become a bit confusing since the introduction of the new menu creation area. Using the new menu system, as far as I know I can ...
0
votes
1answer
309 views

What is the current page's Taxonomy?

I need to be able to switch between the current page taxonomy so I can load in the appropriate menu: $current_tax = 'need to get this from somewhere'; switch ($current_tax) { case 'tax1': ...
0
votes
1answer
97 views

Display “Post 2 of 4” on single post page?

I have a custom post type called Projects. When viewing a single 'project' post I have next/prev buttons to navigate through them. I also want to display text saying "Project 2 of 4" or ideally ...
1
vote
0answers
95 views

A featured page with image and excerpt instead of a featured post? [closed]

Is there a way to have a link with a featured image and excerpt that goes to another page in Wordpress rather than a featured post? At this moment I have a page that links of to three featured ...
2
votes
1answer
889 views

Enqueuing Script in functions.php vs on the page

Does it matter if I enqueue a script on just the page I need it to be used? As opposed to functions.php? Or, what is the best practice? In this example I need a rotator just on the front page of my ...
0
votes
2answers
1k views

Wordpress Query Posts From Category Post on Static Page

So I'm trying to query some posts from 1 category only and it does seem to be working. I tried get_post() also but no luck and after awhile I just caved and used query_posts (which is apparently bad ...
0
votes
1answer
324 views

How do I get category and page ID's?

I want to insert the category or page ID of the current page into my HTML so that I can use CSS to style each page based on what it is. For example, if had a category called "News" and it's ID was 5, ...
2
votes
3answers
7k views

Page template query with WP_Query

I'd like to query only pages with a certain page template with WP_Query or a function that would return the post object, but I can't find any information about that on the officiel codex.
2
votes
1answer
797 views

Set a category for a page

My current theme has a portfolio section where you can have an array items based on what category they are in. My problem is that I have several pages that I want to be in the portfolio section but ...
0
votes
1answer
253 views

Query specific Pages

I wonder if someone would know how to query specific pages (not by id), lets say I create a custom field called "product", and I would like to query all pages with that custom field. Any Help? Kind ...
0
votes
2answers
197 views

Wordpress pages not working out correctly with HTML

Hey all i am having some problems with finding out where wordpress saves my pages. I have a default theme selected and have added a few pages. However, the links to them seem to show up all the same ...
0
votes
2answers
770 views

Search child pages from a specific page parent

Anyone know of an easy way to alter the default WordPress search from searching ALL pages, to searching only child pages from a specific page parent? I know of the filter you can use to alter whether ...
0
votes
1answer
587 views

wordpress reusable content blocks

I am using a custom post type to allow the editor of the site to add a number of blocks of content to the site - infoboxes. Now i would like to give the editor the possibility to choose which boxes ...
0
votes
1answer
1k views

Prevent 404 of Author pages without posts

How do I prevent author archives without posts from 404ing?
1
vote
4answers
2k views

How to disable page delete

My client is not a computer person. I created a website for him. There is some important pages. My client is always delete this page. Then i want to reconfigure the code (the page id). How do i ...
0
votes
1answer
574 views

Automatically delete default posts and pages on theme install?

Is there a way to automatically delete the default wordpress posts and pages when activating theme theme?
0
votes
1answer
472 views

Disable or lock parent pages from being edited in wordpress admin

Is there a way to disable or lock parent pages from being edited in wordpress admin? I only want the children pages to be editable.
0
votes
2answers
313 views

Stepping through a foreach loop - adding +1 to the end of it so next time it loops it starts on item 2

I'm creating a custom Google map that plots multiple markers. View the link as it will make it easier to explain what is happening and what I want If you click on each marker it shows company names ...
0
votes
1answer
2k views

Is there a way to make a custom Page type?

In a theme I'm building, there are two main types of page. One is a product-gallery, one is for general info. I'd like to use wp_get_pages() or wp_list_pages() twice in the sidebar, one with a list of ...
0
votes
1answer
109 views

Static Website No Titles But Still Nav

So I have a static paged website and I want to make pages without title, but I still need the titles for the navigation to pick it up. How can I get rid of the Page.php (the_post()) from displaying ...
0
votes
1answer
153 views

Auto Changing Text Case

So I'm using all static pages and I specify that in my WP settings. When I specify what the 'Front Page' should be it turns my link in to Title Case instead of all Capital Letters like I would prefer. ...
1
vote
1answer
81 views

How can you change the permalink for pages?

When I set my permalink to '/%category%/%postname%.html' this will work for all the posts, but the pages still don't have a .html at the end. Is there a way I can fix that?
0
votes
2answers
956 views

$page = get_page_by_title CONTAINS

Just wondering how to fetch a page by using 'title contains'. I can retrieve a page by using the following <?php $page = get_page_by_title('Restaurants and Pubs'); ?> but how could I do ...
1
vote
2answers
13k views

Display a specific dynamic sidebar widgets on a specific page

I have had a wordpress site handed off to me halfway through completion. It's been at least a year since I last used wordpress and there are a lot of things I'm finding different. The way I am used to ...
3
votes
1answer
285 views

Hard Code Pages into a Theme for a Network (multisite) Installation

I'm creating a multisite network and I am looking for a way to have it so new blogs that are created have a couple of standard pages set up automatically. The purpose of these pages will be to ...
1
vote
1answer
413 views

Wordpress removes spaces in URL on pagination

I'm having a problem with wordpress rewriting my URLs, basically I have a regular search form with method set as GET, when I submit it the URL looks like this at first: ...
0
votes
1answer
93 views

Editing Help Section

I was trying to find the contextual help section for all the admin pages so I could add some additional text. The main pages I need to hit are the "Pages" page and the "Widgets" page but I'm not sure ...
1
vote
1answer
336 views

Where can I edit Admin Panel Page file

I need to edit the "Help" section of the "Page" page in the Admin panel. Since wordpress doesn't allow multiple line breaks I need to make sure the user knows that if they add the "" tag in the HTML ...
0
votes
1answer
2k views

How to create a dynamic page based on form data with a plugin?

I have a form that users fill out. When they finish, they are redirected to a 3rd party site to set up payment options. After completing the payment process, they are sent back to my site with a ...
0
votes
1answer
108 views

Taxonomies on Pages with Custom Formatting

guys, I'm fairly new to this so thanks in advance for your help and patience. So I've recently started using the WPAlchemy class on my site and it's really been an amazing time-saver. The main thing ...
0
votes
1answer
779 views

Redirecting posts in Wordpress to a specific page

I created a page so that it would appear in my navigation menu. This page would however be my posts page (i.e. all posts would go here) and would also be my front page. I am unable to find anything ...
0
votes
1answer
107 views

Phantom page can't get rid of/can't get at to change

Hi: I need to add a page to my very first WP site, which, at present, only has 4 pages on it (though one page has photo albums on it, which generate their own pages). I built the theme, the site is ...
1
vote
1answer
618 views

How to change post to page

If I have to change a number of posts to pages, does this require anything more complex that setting the post-type to page on the table wp_posts? Do any other settings need to be changed. Is it ...
0
votes
1answer
419 views

Static front page with excerpt

I'm currently developping a theme for WordPress, and I have run into a little issue. I have to display some text as well as a "latest articles" list on the front page. I have the front page set to ...
0
votes
1answer
200 views

Getting values from options page to css

i got an options page that needs to affects a certain (for now) css value.. i have about using php variables in css and creating custom global variables in wordpress but havent something easy enough ...
0
votes
1answer
154 views

How do I create pages within a Wordpress post?

I run a music blog and I want to do a countdown of our top 50 tracks of 2011 so far. There's no way that I want to add 50+ images and Audio Players into just one post, and I don't want to break the ...