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

learn more… | top users | synonyms (1)

6
votes
1answer
595 views

multi page password protection

Is it possible to have the "password protected page" feature of WordPress apply to more than one page? I have dozens of pages which I wish to protect with the same password, but I don't want people to ...
5
votes
4answers
5k views

WordPress admin screen very slow / timing out when editing or adding a new page/custom post

I'm new to the site but appreciate any help you can give. I have a WordPress set-up which (rightly or wrongly) has hundreds of pages and thousands of another custom post type which is also based on a ...
4
votes
2answers
5k views

How do I convert a page's title to lower case?

On my test case, the page' title is "Privacy". The straightforward approach strtolower(the_title()) also returns "Privacy" -- still with a capital P. I also tried mb_strtolower(the_title()) ...
4
votes
1answer
4k views

Pages: frontpage.php, home.php, posts page etc

When do I use the following: home.php frontpage.php Under Settings > Reading Settings Front Page Posts Page I wish to clarify this as I find myself using "Placeholder Pages", empty pages just ...
4
votes
2answers
1k views

Page as child in custom post type slug?

I have the following structure: /projects (archive of cpt projects with template archive-projects.php) /projects/project-1 (single view of cpt with template single-projects.php) /projects/downloads ...
3
votes
1answer
438 views

How to count current user's pages?

There are a lot of answers on how to count users posts by using: <?php if ( is_user_logged_in() ) { global $wpdb; $user = wp_get_current_user(); $where = ...
3
votes
2answers
13k views

Upload multiple images in a custom metabox

I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
3
votes
2answers
1k views

Does Wordpress generate an automatic page for post formats?

I want a page to view only a specific post format (e.g. aside). Do I have to create my own page and run a custom query, or does Wordpress have an automatic page generated for me (like the ...
3
votes
1answer
225 views

Editing the Number at the end of Page URLs / Editing Page Slugs

I am playing around with wordpress and a few plugins. Say I have something called "Shopping Cart" and I delete the page. Then I recreate it, I can't have the old URL back. I get ...
2
votes
1answer
92 views

PHP Script within wordpress theme

I have a php script that I'd like to utilize within my wordpress theme. I'd like to restrict access to the page based on users belonging to particular groups so it's important to keep it within ...
2
votes
2answers
707 views

How do I modify this page template to show subpage excerpts (not post excerpts)?

I have made a page template which shows linked subpages using this bit of code: <?php $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'menu_order', 'sort_or ...
2
votes
1answer
1k views

How to get a feed for post type 'page'?

I'm trying to get a feed for pages and a separate feed for posts. The feed for posts works perfect as it is. I just want a separate one but i have tried all the plugins and searched for about a week ...
2
votes
2answers
500 views

Modify built-in post type properties

I have an unusual situation where I need to make the built-in post type 'page' non-hierarchical. I printed the post type object with var_dump(get_post_type_object('page')); die; and I got this: ...
2
votes
2answers
2k views

Displaying Child pages of the current page in post format and their thumbnails (featured image)?

I'm using the following code I got from the Wordpress codex: <?php // Displaying Child pages of the current page in post format $mypages = ...
2
votes
1answer
2k views

Child page from 2 different parent pages

currently I have 3 parent page types with multiple child pages under each. Feature * feat 1 * feat 2 .. Creative * creat 1 * creat 2 ... Info * info 1 * info 2 ... I have been successful with ...
1
vote
1answer
2k views

Multiple pages on a single page

I have the following code (created very kindly by alchemyth in response to a question I posted on the WordPress.org forum here) that I hope to use to display lots of pages on a single page: <?php ...
1
vote
1answer
382 views

Hide certain pages / posts on wp-admin, show custom filter

I'm integrating a separate ecommerce CMS into a wordpress theme, using page templates for some pages such as the basket, search and checkout pages. This is working out pretty well so far. However, ...
1
vote
2answers
477 views

Placing google maps into a wordpress page using the wordpress page editor

I'm creating a website for a restaurant, I have working code that does what I want. Displays a map. Under the map, I've a form with two inputs. The first input allows someone to specify where they ...
1
vote
1answer
79 views

Create a Page via plugin

My problem is to show a list of products read from db tables. I know how to read them and I am able to produce the table, but only using a shortcode embedded in a page that I've created via WP. I ...
1
vote
2answers
65 views

Hiding Page by Title from Editing

I have a number of pages which are automatically generated. I then use a custom settings box to allow users to exchange the content on those pages. Problem being, I don't want users to be able to ...
1
vote
1answer
400 views

Hide pages depending on role

I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel. I looked in the edit.php file and noticed: } elseif ( 'page' == $post_type ) { ...
1
vote
2answers
422 views

Associate Page with User

We currently have a setup where anyone can register as a user and their own 'page' gets created manually by admin. We need a menu option to be something like 'View Your Page' and direct a user to ...
1
vote
2answers
5k views

Get current menu_order

WordPress implements a simple order functionality by default. What's the common method, to retrieve the menu_order for the current post or page?
1
vote
2answers
892 views

Single page theme that uses pages for the content

I'm making a one page site. On the page I want to run WP_Query three or four times to pull in those 3-4 pages. The page looks a bit like this: <div class="row"> <?php $args = array( ...
1
vote
1answer
580 views

Why is custom template not seen as page with is_page()?

I created a couple of templates for a project, which is in fact a child theme of the Contrast theme. In the Wordpress CMS, I can select the templates I created: http://i.imgur.com/PYKqK.png (Can't ...
1
vote
3answers
193 views

How do I turn comments off for pages, but not posts?

I want my pages to not have comments enabled by default, only my posts. Is this possible?
1
vote
2answers
4k views

Custom Blog Post Page

I found this example here of creating a custom blog post page: http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-homepage-in-wordpress/ 1) I created a blog page under Pages > Add New 2) ...
1
vote
1answer
376 views

Too many pages causes Wordpress admin to be unusable

We have a Wordpress website that now has around 9k pages in it after an import of many location targeted pages. The frontend runs perfectly fine and there is no performance damage (after I replaced ...
1
vote
2answers
2k views

Get parent page/menu id of current post

Basically, after setting up the initial "page for post" on the Reading Options, and then add that page to the menu I get the posts when I click on that menu item as expected. On there I know the post ...
1
vote
1answer
84 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?
1
vote
1answer
373 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 ...
1
vote
1answer
823 views

Is it possible for a plugin to register a page template file?

Is there a way for a plugin to house page template files and have them available after plugin activation? E.g, I have a plugin that requires specific page page templates to be used, so I'd like ...
1
vote
4answers
930 views

Where does the 404 redirection happen?

Can someone please tell me where the 404 redirection occurs? I am wanting to redirect to a custom template.php instead of the 404 page. Is this possible to do? If it is can some one provide me with ...
1
vote
2answers
1k views

wp_link_page - wrap current page element

I'm trying to make something more meaningful out of the wp_link_pages() result: $paged_page_nav = wp_link_pages( array( 'echo' => false ) ); // Now let's wrap the nav inside <li>-elements ...
1
vote
2answers
1k views

WP-PageNavi plugin doesn't work with multiple pages of search results

I'm using Dilectio theme and WP-PageNavi plugin. The plugin creates links to multiple pages perfectly on every page except for the search results page. For example, when I search for the keyword ...
0
votes
1answer
33 views

Page template gives 'Parse error: syntax error' when used, but no error found!

I get this message, whenever I activate this page template for one page, for instance about.php : Parse error: syntax error, unexpected end of file in ...
0
votes
1answer
45 views

Debugging shortcode problems

I am trying to get some of the Miscellaneous shortcodes working properly on my website. In particular, I would like to use the pages shortcodes: [list-pages], [child-pages], [sibling-pages]. I am ...
0
votes
1answer
95 views

Different “Text Widgets” in Sidebar on Many Different Pages?

Hi there I have a few questions on adding different sidebar texts to sidebars per page. On one part of my site, I have pages dedicated to individual animals. I have figured out how to change the ...
0
votes
1answer
25 views

Can I change a post to a page by changing it's type?

I'm looking at the properties of the $post object and there is a "type" property. In the code if I write it out it says, "post". If I change this to "page" will it show up as a page? I can try it but ...
0
votes
1answer
67 views

Loop through two different sets of custom fields

I created a Custom Field ('custom_name') to allow content editors to specify a 'custom_name' (different from the title of the page) to any post created: custom_name - (Field type --> 'text') For a ...
0
votes
1answer
1k views

Show Default Editor on Blog Page ( Administration Panel )

In WordPress 4.2 it included a nice feature which labeled what page was the Front-Page and which page was the Blog ( Latest Posts ). Unfortunately, it also removes the default editor on the page ...
0
votes
1answer
53 views

Calling Specific Pages with wp query Part II

I'm making one page website and I added a custom field on "Page" post type that asks "Use this page as a section:" Yes or No(with dropdown). I called all pages on template-onepage.php(custom template) ...
0
votes
1answer
242 views

How to have a static category/author page?

I'm using a static front page with my theme and it's convenient and just nice. I'd like to do the same for the category and author pages as well. I can't find this asked yet... My reasons are... • I ...
0
votes
1answer
91 views

Is there a way to stop WP editor deleting <gcse:searchbox-only></gcse:searchbox-only>

I would like to paste my Google Custom Site Search code into the editor to appear on one of my pages. It works when pasting into the "text" side, but get's turned into a NBSP if I flick to "visual" ...
0
votes
1answer
128 views

Overview with latest edited posts and pages

I'm looking for an overview of all the latest user activities. But I don't want to see comments on this page, just the edits or creations of new posts or pages. Unfortunately I can't find such a ...
0
votes
0answers
78 views

/Page2 shows the same posts as /Page1

My issue is that i use this plugin http://wordpress.org/plugins/page-layout-builder/ But when i on my frontpage, press on the 'page 2' button, it then shows page 2 but with the same posts as page ...
0
votes
3answers
997 views

Show a special message for private page?

If I set a page to private, can I have it show a message instead of a 404 page for public users?
0
votes
1answer
240 views

Multiple Loops Breaking Pages

I'm new to WordPress, and I'm having an issue with "The Loop." I have a sidebar on the left side of a page that's supposed to show recent posts from two categories. In the middle of the page, there ...
0
votes
1answer
48 views

What's the most minimal way in which a page can be hooked into WP?

I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates. However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...
0
votes
1answer
351 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ...