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

learn more… | top users | synonyms (1)

5
votes
1answer
571 views

Page returns 404 with POST variables, but not without

I have a problem with my page. I'm trying to make a "Contact Us" page. It's working perfectly fine design-wise. But when I try to send the form to the same page as origin. It returns 404 error. It ...
2
votes
2answers
2k views

Next_posts_link() works only with original $wp_query

I've got custom template that I want to display paged blog posts. This is the beginning of my file: $wp_query = new WP_Query($args); if($wp_query->have_posts()){ ...
18
votes
10answers
1k views

Contact Form on WordPress Sites?

How does one go about building a page in wordpress that contains a contact form full of custom fields, boxes, inputs, etc. completely determined by the author of the site. It seems odd that wordpress ...
2
votes
2answers
778 views

How to add or remove metabox each page separately?

How to add a meta box for a particular page, say: for only About Us page. How shall i do? The current code adds the metaboxes for all pages: function myplugin_add_custom_box() { add_meta_box( ...
0
votes
1answer
172 views

Dynamic content in a static page

I have developed some calculators (in php) for my website and I need Wordpress integration. The calculators have a form and, after submission, the result is shown. The result depends on a query in ...
0
votes
4answers
436 views

I want only my sub-pages to be clickable in the navbar

I am building a simple website with a number of pages, each of which is grouped. Let's say my website has roughly 20 pages, grouped into 5 categories. So I want my navbar to display the 5 categories, ...
4
votes
1answer
567 views

Create a page without adding a page in the Database

I am trying to include a special Archive page with my theme, right now I have a PHP file with Template Name: Archives Template at the top and I the user must create a blank archive POST PAGE and ...
10
votes
3answers
3k 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 ...
1
vote
2answers
2k views

class=“parent” for wp_list_pages?

<div class="menu"> <ul> <?php wp_list_pages('exclude=&title_li='); ?> </ul> </div> creates the following output... <div class="menu"> ...
0
votes
3answers
4k 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.
8
votes
4answers
2k views

What methods to use to create small, editable pieces of text for static pages?

For many of the sites I do for clients, the designers will make pages with small pieces of text in various places. For example, the home page will have a headline, a tagline, and a small box with ...
4
votes
2answers
261 views

Delete Associated Media Upon Page Deletion

Note Use at your own risk, it is buggy and I have run across a couple instances where it would delete ALL attachments. Unsure why. Is it possible to delete media associated with a page when that ...
1
vote
4answers
1k views

WP Page and Subdirectory with same name

I have a subdirectory within my WP installation called labs. I created a WP page called labs as well. When a user hits mydomain.com/labs/ I want them to load up the WP page. But instead it's loading ...
2
votes
1answer
158 views

Only allow new subpages to be created

I'm looking for a way to only allow users to create new subpages once there are nine pages that are parents/root pages. Once there are nine parent pages when trying to create a new parent the users ...
2
votes
2answers
245 views

Worpress twenty eleven sidebar on Pages

I am using 2011 theme, any how I managed to get sidebar on single.php pages by installing child theme, But now I want sidebar on pages, How do I get it?
0
votes
2answers
896 views

Include multiple page ids in loop

Haven’t slept in about 30 hours now, can someone please help as the below code doesn’t work, it just displays all posts etc :| <?php $args = array ( 'page' => array(139, 54) ); ...
2
votes
2answers
620 views

Create built-in pages without creating actual pages

For example: site.com/contact (or site.com/?page=contact if not using permalinks) when someone goes to that page I want to load a theme template, like page-contact.php But I don't want to create a ...
1
vote
1answer
1k views

Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url

I have been reading dozens of posts and honestly, I have many doubts on how this work. Furthermore, I think that with WP3.1 more issues have been added here because I am having even more problems now ...
8
votes
2answers
4k views

Integrating a custom post type into a page hierarchy

I'm creating a theme with a custom post type for team members, I've also got the following page structure: about <-- this is a page about/team-members <-- this is a page, lists all the team ...
5
votes
4answers
1k views

A way to automatically install pages on theme install?

I'm trying to build a theme which would require specific pages to be included. Is there a way to automatically create pages and assign them to their page templates when a theme is installed?
3
votes
2answers
3k views

Multiple areas of dynamic content in a page

I am new in Wordpress and what I really can't find how to do is the following: I have a new Page created from the CMS. This pages have different modules with text. Take for example this template ...
0
votes
2answers
331 views

How to display page title+link of page created by user

I want to check if user is logged in and if have created a page. If so, option 1 is shown. This all works fine. But how to display page title+link of page created by that user between {page title ...
2
votes
1answer
289 views

Hide page visual editor if template is selected - redux

The answer given to a previous and identical question is unfortunately not working on my WP install. I'm using a version of the function recommended there. function nim_hide_editor() { $post_id ...
2
votes
3answers
734 views

Automatically create pages in a post based on number of words

I need a method to automatically create pages (using <!--nextpage-->) in posts based on number of words. For example... A post containing 1200 words should be broken down into 6 pages with ...
2
votes
2answers
485 views

Caption in Page adding unwanted 10px to width

I'm trying to create an image with a caption in a Page I'm working with. In the image options, I have it aligned right, with an image width of 220. Without the caption I have no problems, however with ...
2
votes
3answers
1k views

Change page template programmatically ?

I have two page templates and Qtranslate installed. I want to choose one or another depending the language selected. Can I do something like this ? if($q_config['lang'] == 'en'){ // load ...
1
vote
1answer
121 views

Wordpress protected Pages

Would be possible to access the protected pages with password through of a token. What I mean I pass the token by URL, is going to be checked if the page is protected, if yes check if the URL has the ...
1
vote
1answer
121 views

How should I best incorporate WordPress in my static website?

My site as of right now is a static website. I am planning on having a 'recent blog posts' section on it, with permalink to the main blog post/blog. example: http://site.com/blog I was wondering, ...
1
vote
2answers
2k views

How to list ALL Pages in the dashboard?

I'm wanting to find a way to have all pages listed without paging and to do so in a method that isn't going to be over-written when I update WordPress, i.e. in the form of a hook. The page is in the ...
0
votes
1answer
660 views

Getting an alphabetic post list with two letters onclick on letter

I have a website in Wordpress and a page with a list with letters like this: A B C D E F G H I ... This shows me all posts with the letter A for instance. That's nice, but I want it to make it ...
0
votes
2answers
79 views

Identify the page being shown while in The Loop

In my loop, I'm trying to set it so that certain text is displayed on certain pages, if there are no posts to display. I thought this would be simple, using is_post(), but it seems that this function ...
0
votes
1answer
351 views

Relative or Absolute Paths for Flash Video Player Files

I have a Flash SWF file working correctly in the root of my website. It is fully embedded, with everything including the player hosted directly on the website (not a YouTube embed). This flash file ...
0
votes
2answers
260 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 ...
9
votes
1answer
4k views

Check if we're on the wp-login page?

How can I check if the current page is wp-login.php or wp-signup.php ? Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?
3
votes
1answer
2k views

Diplay a registered user profile page

I have a website where users can register, login and their edit profile, they can comment but not post. What I am looking for is a way to display a user profile page (where I display the gravatar and ...
4
votes
3answers
8k views

Get page content using slug

I'm trying to get page content when I only know the slug string. Is there a function for this, or an easy way to do this or is this a case of doing it via SQL? Thanks very much
4
votes
1answer
1k views

Passing variables through permalink structure

I have a WordPress page which is accessible via /accommodation/. What I want to be able to do is pass in a parameter using the URL - ie going to /accommodation/value1/ would load the same page as ...
3
votes
2answers
852 views

TV Show database - Best way for structuring it?

I want to make a TV Show database in Wordpress that has this URL format: /tvshows/friends/01/12/ /tvshows/ would list all series /tvshows/friends/ would list all the seasons available for Friends ...
3
votes
3answers
4k views

How to add a specific widget to only 1 page?

I would like to show a widget in only one page of my site, as i can see it is not possible right? Should i add that for all my site pages or not?
2
votes
1answer
747 views

WP Multisite: Adding pages on blog creation by default

I’d like to have a page added by default when a new site is created with WP Multisite. So I have my function that creates two pages: function my_default_pages() { $default_pages = ...
2
votes
3answers
3k views

Hide page visual editor if certain template is selected?

How do I hide the page editor (WYSIWYG editor) if the current page is set to a certain template. I have the following code already to add in custom meta boxes when certain templates are chosen: ...
5
votes
1answer
404 views

Create a “Dummy” parent page for a hierarchy in page listing?

Is it possible to set up a "dummy" page - just a page title that appears in the page listing, and a page that is not editable and doesn't have a slug? This is more of a hypothetical question, as I ...
5
votes
2answers
1k views

How to Remove all Instances of edit_post_link

Can someone please assist with how to remove from my theme, whilst in author mode, the edit_post_link (Edit link), throughout all my pages. Which php files in the Twenty Eleven theme (WordPress v3.2) ...
4
votes
5answers
2k views

get_pages() not ordering as it should

I'm using get_pages() function to get all subpages from a page like this: $childrens = get_pages(array('child_of' => 7, 'sort_column' => 'post_date', ...
3
votes
2answers
438 views

wp_insert_post breaks rewrite rules

I'm using wp_insert_post to programmatically add content to a site. This works fine with posts, categories and tags, but not with pages. When I attempt to add a page (i.e. post with post_type=page), ...
3
votes
4answers
655 views

How to add a post from a custom post type as the static page?

I have created a custom post type and added some custom metaboxes to the page edit screen. My objective was to provide specific metaboxes which a user can edit which in turn would allow a user to ...
2
votes
1answer
784 views

Auto create pages on WordPress multi site register

I'm creating a multi site and would like to have: A few pages that are automatically created with the new site (at the moment only the default home and sample page are created with a new site, ...
2
votes
1answer
2k views

Using the Loop to show all levels of subpages under a parent page? Halfway there

I have a need to make the Loop run through all of the children of a parent, all of the children of each child, etc. The reason I need the Loop instead of a listing tag like wp_list_pages is so that I ...
2
votes
1answer
609 views

Page queried instead of a custom taxonomy

When I try to get an archive for a custom taxonomy, WP searches for a page and doesn’t find anything. The Setup My code from the functions.php: add_action( 'init', 'register_store_taxonomy' ); ...
1
vote
1answer
27 views

How to use the same code for multiple pages?

The code below prevents a page (defined by its title) from being deleted. When I try to implement two occurrences of this code (one for each page I want to prevent from being deleted) I receive the ...