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

learn more… | top users | synonyms (1)

2
votes
1answer
91 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
684 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
472 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
2answers
440 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
78 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
339 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
387 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
4k 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
815 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
544 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
366 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
365 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
819 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
908 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
29 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
42 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
22 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
65 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
640 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
52 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
203 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
79 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
114 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
76 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
895 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
232 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
45 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
329 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 ...
0
votes
1answer
741 views

Listing all posts from current category on page

I'm trying to list all posts from a certain category, in a list, on the category page that already lists the posts out in blog form. I'm trying to do it in the header area so that you can get an ...
0
votes
2answers
1k views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general ...
0
votes
1answer
944 views

I use same slug name for category and page

I added one slug and page with the same name and they worked fine, but when creating a second WP forced me to rename the page (being created after the category) with an additional "-2" how to clear ...
0
votes
1answer
1k views

How do I do a page break?

Is there a way to add a page break into length pages? Preferably automatically, but doesn't really matter. Ideally without a plugin.
0
votes
4answers
4k views

Using same slug name for a page and category

I know it isn't good practice but I'm considering using same name slugs for some pages and categories on a site that I'm working on. It's a small site and it doesn't seem to affect anything in ...
0
votes
1answer
101 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 ...
0
votes
1answer
468 views

Should I use relative or absolute urls when pointing to internal pages

This is a simple question, that's probably been asked before. For internal links between pages, is it better to use a relative link or full permalink? Thank you.
0
votes
1answer
904 views

What would causes search to return incorrect results?

Recently our site began no longer returning correct search results. When searching it returns one result that's unrelated to the inquiry. I've turned off all plugins and reverted back to a day when I ...
0
votes
1answer
223 views

How to build a post and comment editing form in a page?

This plugin enables you to submit a custom post type called 'Questions' using a form that can be embeded in a page via shortcode. Is there a way of accomplishing the same, but this time, building a ...
0
votes
3answers
768 views

Listing all sub-pages?

I'm wondering how to write a list of sub-pages of actually visited page. So I have 2 pages and 3 sub-pages for each: Colors [page] - Red [child of Colors - subpage] - Blue [child of Colors - ...
0
votes
3answers
290 views

Include related posts on a page

i've got several posts which are tagged with "design", but also a page called "design". my question: i put some text into the design-page and would then display all posts which are tagged by ...