Pages are static, timeless content that are unique from the regular blog chronology.
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 ...
4
votes
1answer
232 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
389 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()){
...
3
votes
1answer
447 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 ...
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">
...
2
votes
2answers
567 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(
...
8
votes
4answers
1k 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 ...
2
votes
1answer
135 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 ...
0
votes
2answers
700 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)
);
...
1
vote
1answer
806 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 ...
7
votes
2answers
3k 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 ...
4
votes
3answers
435 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
994 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 ...
2
votes
2answers
401 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 ...
1
vote
1answer
330 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 ...
1
vote
4answers
870 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 ...
0
votes
2answers
72 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
2answers
211 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?
1
vote
1answer
80 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 ...
0
votes
2answers
2k views
After update to WP 3.4 page navigation is not working? [closed]
After I have updated my website to wordpress 3.4 the navigation pages work until page 10, and on categories the pages are not working even after page 2-3.... I don't understand why ?
here you can see ...
0
votes
2answers
220 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
2answers
780 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 ...
7
votes
1answer
3k 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'] ?
1
vote
2answers
396 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 ...
7
votes
2answers
2k 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 ...
5
votes
2answers
684 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) ...
2
votes
1answer
578 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
3answers
2k 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:
...
2
votes
1answer
566 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
3answers
1k 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
1
vote
2answers
648 views
Notify admin when page is edited?
I found this previous post to automatically notify the admin when a post or page is published:
Alert Email when any Post or Page is Changed
Works like a charm, thanks! However, it looks like the page ...
1
vote
1answer
118 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 ...
1
vote
1answer
1k 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 ...
0
votes
0answers
73 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
1answer
346 views
Custom Page Template [closed]
Could somebody help me make a custom page template?
I'd like to have a basic page (with sidebars, header and footers) and a table for data. I'd like the data to be taken from custom fields. ...
0
votes
2answers
903 views
Pagination with custom loop
my question may look like Pagination not working with custom loop, but there is a different. I use the custom loop for display flash game. I want to make a pagination on page games by category. ...
4
votes
1answer
113 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 ...
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 ...
4
votes
5answers
1k 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
1answer
56 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 = ...
2
votes
2answers
153 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
424 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
1answer
1k 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
87 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
3answers
375 views
Add a Page without header and menus?
Is it possible to add a Page in WordPress, so that none of the header or the menus of the site appears on that page?
And also so that the stuff in sidebars that's on the rest of the site doesn't ...
1
vote
2answers
675 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
173 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
3answers
546 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
72 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
204 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 ...
