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

learn more… | top users | synonyms (1)

-3
votes
1answer
35 views

How can I check if a page has sub pages?

I tried it with this but it doesn't work: function has_children() { global $post; $pages = get_pages('child_of=' . $post->ID); return count($pages); } function is_top_level() { global ...
0
votes
1answer
18 views

Return subpages of an author if the parent page was published by an other author

I just stumbled over an issue while programming my own WordPress theme and I need your help. I defined an author.php file which should display the static pages and the blog pages of a given author. ...
0
votes
0answers
17 views

When I set a xyz page as static front page it dosen't show up in main menu [on hold]

When I set a xyz page as static front page it doesn't show up in main menu it automatically hide from main menu so please help me out.
0
votes
2answers
30 views

Role can edit just one page

I've built a site for a client, only ten pages, nothing especially big, and created a role for the group members called Blogger, as the staff need to all be able to both blog and access a couple of ...
0
votes
2answers
13 views

Detecting current page from class method

I've tried to look for a specific answer/tutorial on this subject but I'm coming up short and wanted to see what the SE community could suggest. At this point, any guidance whatsoever would be most ...
0
votes
1answer
15 views

Getting the Most Recent Posts from Multiple Categories

I've got a page (page, not post) that near the bottom of the page I want to get the most recent 15 posts from a set of categories. I'm new to doing this and thought I was doing it correctly. The div ...
0
votes
0answers
18 views

Screen Options/Help tabs, text editor became unclickable [on hold]

This is my first attempt at turning my static HTML/CSS site into a WP theme. I have gotten as far as configuring the header.php, sidebar.php, index.php, footer.php etc. Now I am in WP version 4.5.1 ...
0
votes
2answers
31 views

Admin menu disable new/delete page

So I've been tinkering with the admin roles and I can't seem to be able to revoke create page rights for the admin. I can only find 'Edit page'. If I remove Edit page, the entire pages tab goes ...
1
vote
1answer
23 views

Page vs Custom Post Types Differences/Issues

I started noticing issues last week when 4.5 was released and mistakenly believed that update caused an issue. In reality, I just happened to notice it for the first time around then because last week ...
-4
votes
1answer
33 views

How to remove container box in Wordpress pages? [closed]

I would like some help on removing the container box from all my pages (Theme: Zerif Lite). In the screenshot below, you will see it red-boxed. Thanks in advance! Regards, Suraj Edit 1: I think ...
1
vote
1answer
21 views

Creating custom page

I am new to this and can not find any material how to create new page without admin control panel. I am not programmer, but I created my theme files manually and would like to know how should I create ...
0
votes
2answers
23 views

Posts and pages not getting published

I just installed a fresh version of 4.5 on my server. But for some reason every page or post is getting the status "Scheduled", it won't go to Published. Other sites on the same server works fine. ...
-3
votes
1answer
18 views

How To Display Date (/Time/Author) In pages?

I'm trying to search for a way to display the published date of a page, but I can't seem to find one. Maybe because the "PAGE" word is very generic. But what I'm looking for is a way to display date ...
0
votes
0answers
15 views

How to add a pagination in custom post type maker plugin

I declared testimonial using a testimonial page template. I want a pagination in testimonial menu. <div class="testimonial"> <ul> <?php $args = array( "post_type" => ...
0
votes
0answers
25 views

Addressing Child Page from Custom Menu

I build the website of an association with centers in different cities. Each city's pages need their own sidebar. I want to program an automated solution where the editors dont need to select ...
0
votes
0answers
13 views

What is right way to check a page?

If I want to do a check for a page. For example, if I am on page with the title "About", it is better to check for the title, slug, id or some other way? The reason I ask is because page Titles and ...
-2
votes
0answers
12 views

Audio Player like page navigation

I would like to have page navigation that looks like audio player where the play button will go to next page, and the 'seek bar' basically shows the progress of the page. Any idea how to create ...
-2
votes
0answers
15 views

Pagination doesn't change page at penultimate page

My paginations seems recognize just the first page. In simple terms, it doesn't go over when I click next in a page different from the first. This is my code: <?php /** * Template Name: ...
0
votes
2answers
29 views

One Post with different content, depending on a Page

My goal is to make a user manual WP site for the web app that my company is selling. My issue is that the web app has some differences in functionality for different clients. For example, we have a ...
0
votes
0answers
17 views

Help with python script in Wordpress [duplicate]

I've been trying to run a python script on my Wordpress site using the method described in this post: Running a python script within wordpress. I got it to work, but there are some issues that I'm ...
0
votes
3answers
22 views

WordPress Load Only Page Text

I'm working on a page template and I need the_title to be separate from the page text. I'm not sure how to load the_content without it having the title. Can anyone help?
0
votes
1answer
47 views

Why does not this wp_redirect work in is_single()?

I have a custom post type (portfolio) and I have to redirect a certain page (of this custom post type) to another page. when I look at my custom post type page: So I wrote the code as follow to ...
0
votes
1answer
37 views

Send e-mail from admin area to adresses in custom field

My client wants to be able to send an e-mail from the Page Editing Screen to a number of e-mail addresses. Every page has a custom field called email_addresses that takes comma seperated addresses: ...
0
votes
2answers
41 views

Prevent Wordpress from adding linebreaks to javascript embedded in a page

On a page in Wordpress, If I enter the following code: var r='<li><a href="#"><img src="' + slide.src + '" width="50" height="50" /></a></li>'; it is rendered in the ...
0
votes
1answer
16 views

Wordpress URL question

I have a web page that I created and in doing a google search for the company and my name a weird page came up. For private reasons I will not reveal the company name so I will use a fictitious ...
0
votes
2answers
43 views

Display specific page (that is child) content on parent page

I have problem displaying child page content on parent page (both static). I can display other page content but only if on same level. It dosent work in relation parent - child. <?php ...
0
votes
1answer
39 views

Pagination For Page Post Type

I try to use the Eric Meyer's pagination codes to make it working for page post type, but unable to figure out how to make it working. It's always show the first page. Here is the codes: <?php /* ...
0
votes
1answer
28 views

How to add a regular page under a custom post type?

I'm building a WordPress website that should have the following structure: Project A (project post type) About (regular page) Location (regular page) Partners (regular page) News (regular page) ...
0
votes
0answers
17 views

Redirecting a Post to a Page Because the Page is More Flexible

Wonder if there is an acceptable way to do this. I am using a theme on this site that allows me a good amount of functionality for pages that isn't there for posts. So, I can create a page and have ...
-1
votes
1answer
27 views

Output the published date / last modified date of specific page

I am trying to output the published date and last modified date of specific pages on a exclusive portal for certain users. Right now I can only find something similar for posts or within the specific ...
0
votes
1answer
18 views

How to create a custom page in woocommerce?

I would like to create a blank page, which is used to list out the product by the category , so far I have found some code like this: $args = array( 'post_type' => 'product', ...
0
votes
2answers
32 views

Google Page Speed Insights not recognising WP-Cofig settings?

I have been using Google Page Speed to help try speed up my site, which it rates pretty poorly. Google suggest I Enable Compression and Minify. Well, these are defined in my WP-Config file. So either ...
0
votes
0answers
27 views

How to turn post into pages and via versa?

I made a wordpress blog. Too many pages. I want to convert all of them into posts and maintain all the links. How do I do so?
0
votes
0answers
16 views

Create a custom theme-specific page, invisible in the admin-panel?

I've learned that when I want a custom page, I need to create a page template, create my page and assign the template to it. Also I've read about fake/virtual pages, where the page is generated on the ...
0
votes
0answers
15 views

Where wordpress try to find php file for site?

I have installed woocommerce. When I open site host.eu/product/category/something else `host.eu/product/sth' Where wordpress try to find .php file to run this page? ...
0
votes
0answers
22 views

Enable/Disable code in static pages

I'm trying to add a checking (hide/show) option in my wordpress pages that allow to either allow a code to be displayed or hidden, so that when i create a page i choose if i want that code to be ...
0
votes
1answer
46 views

Show different pages on site depending on user choice

I am building now a Wordpress site that has a automatic opened popup on the first page which gives the users the possibility to choose between 2 options (ex if they are private customers or company ...
0
votes
0answers
22 views

Parent Under The Page Attribute WordPress 4.2.2 Is Missing

Parent under the Page Attribute panel of WordPress 4.2.2 is missing. At first I thought because I am using Child Twenty-Fourteen theme instead of the parent might be be the cause it. But the problem ...
0
votes
1answer
40 views

Removing custom sort order from admin page listing

For the background to my question: On my page listing, I've got a set of pages that are countries and the child pages of those are categorised into 'Types'. So I've got a page structure like this: ...
0
votes
1answer
38 views

add_rewrite_rule with bottom priority doesn't handle the Wordpress pages

I have a php file named test.php that outputs the page querystring parameter. I want to use add_rewrite_rule to serve my php file, while the WordPress pages which exist already or will be created ...
1
vote
1answer
32 views

Pages should have priority when using add_rewrite_rule

I'm using the following code to have dynamic pages function custom_rewrite_basic() { add_rewrite_rule('^prefix-(.*)', 'foo/bar/index.php?page=$matces[1]', 'top'); } add_action('init', ...
0
votes
1answer
15 views

The permalink for the page doesn't work and page's defined link throws “Object not found!”

I created new page in a fresh WordPress install. Version of WordPress is fairly new - 4.4.2. I set the permalink for the new page to be http://localhost/gp/page-two/‎.
0
votes
2answers
30 views

How to properly enable comments form in page template

I've applied the following code to enable the comment section in the page template. <div class="col-md-12"> <?php while ( have_posts() ) : the_post(); ?> ...
0
votes
0answers
18 views

Posting from page linked to plugin

I am creating my first WordPress plugin and so far I am not doing to badly but looking for some guidance as not really sure if the way I am thinking of doing this is correct. I have a plugin that ...
0
votes
0answers
35 views

Automatically Paginate Posts after specific number of words

I want to insert <!--nextpage--> (for paginating posts) after a specific number of words, and I want it to keep inserting the tag until the post ends. There is a plugin which does a similar ...
0
votes
1answer
31 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
23 views

How to have a separate page? What should be the link to that page?

I want to have a separate php page. What should be an anchor for that page if i'm placing the link on home page? Suppose my page name is projects.php, but when I put it in an anchor tag like , it ...
0
votes
0answers
24 views

how to create sections on page

Can anybody tell me how I can make the sections on wordpress. e.g http://www.foton-global.com/mediumheavy-duty-trucks/ They are showing sections on each page. Is there any plugin or this is custom ...
-1
votes
1answer
30 views

Custom post page has attributes of latest post [closed]

When you share the custom post page, it shows title, description, author of latest post. Even page ID is from latest post. Does it supposed to work like that? Besides this, it causes many other ...
0
votes
0answers
26 views

How do I put my Blog posts on two or three different pages?

So my site has a static front page and a blog page on my website, but I would like to show my blog on both the blog page and the static front page. Also, I have several pages representing several ...