Questions tagged [pages]

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

618 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
357 views

Link section within page with slash (/) and not hash (#) without reloading the page

So here is a requirement: Client wants a page template where there is two level menu on left side of the page. That menu can link to any page, post, category or a section within same page. The menu ...
4
votes
0answers
1k views

Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content

I've never posted here, but I'm tired of slapping code together. That said, I would be most appreciative if someone could help me with this. I need a page template that: outputs the PARENT PAGEs, ...
4
votes
1answer
155 views

Get page content by category or tag

I'm trying to sort of emulate the Views behaviour in Drupal with WordPress, but doing it in theme templates. Now, I have pages that are assembled by using wp_query in the template to get posts ...
3
votes
1answer
2k views

why does HTML Tag not working in Post and Page

Though this is not a programming related question but I am facing a bitter experience with this WordPress problem. the problem is HTML Tags are not working in my website. See the images
3
votes
0answers
79 views

Page with page template not using template in Preview

I am using a page template created by myself, which is showing and working correctly in page backend. It also works on the front end. The problem: Preview shows the normal "page.php" instead of ...
2
votes
1answer
49 views

How to change the permalink structure of a master page?

Links on the page I use are progressing as follows: http://example.com/image/1 The code I use for Functions.php add_action( 'init', 'wpse316713_pagination_base_rewrite_rule' ); function ...
2
votes
3answers
36 views

Remove Page Name From Wordpress Menu

I have a Wordpress menu that are both being used as a normal menu with page name that links to the page. I want to echo the same registered menu, but without the page name. To be clear, I still want ...
2
votes
1answer
1k views

List children of second level sub page

Top Level Page - Second Level Page --- Child Page --- Child Page --- Child Page The goal here is to list all children of second level, I have that done from the codex. However, when I click ...
2
votes
0answers
104 views

Page Attachment Permalink Structure based on Menu Order?

I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this. When using pretty links in WordPress, media attached to ...
2
votes
1answer
648 views

How do I approach removing menu items on the fly based on settings in my plugin?

I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
2
votes
0answers
190 views

Passing the page ID to a login php script

I'm trying to create a simple registration process which goes like this, A visitor clicks on a link (which is viewable only after entering some information such as name, email, phone etc.) This link ...
1
vote
0answers
27 views

Assign same parrent Page to pages AND custom post types

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom post types of type job_position are being displayed. For some specific reasons I need to ...
1
vote
0answers
17 views

How to create a page that lists all the experts(Users with same access permission as author)?

I want to create a page that lists all the experts(Users with same access permission as author). One solution I could think of is to create a page from the WordPress dashboard (Eg:medical-experts) ...
1
vote
0answers
22 views

Control Content On Non-Blog Pages

I'm new to WordPress, trying to learn it's capabilities. My Goal My goal is to make a normal website but have it's content (text and images) be adjustable by the user / client, managed content. An ...
1
vote
0answers
23 views

How to show the root webpage on all subpaths

I want to show the same page on all the subpaths on my web site /events/ /events/firstOne /events/secondOne/edit /events/whatever/blahblahbla/helloworld All that urls must load the same root page. ...
1
vote
1answer
35 views

Programmatically add existing pages and subpages to Appearance Menu

I have inherited a site with over 600 pages/subpages. I plan to use a plugin to change the way the navigation displays but it requires the pages to be in the Appearance -> Menu in this page: /wp-admin/...
1
vote
0answers
30 views

Can't locate a hidden private page

I have 9 published page, and 1 private (invisible) page, in total 10 pages. However, my wordpress says that there are (2) private page, and total of (11) pages. How can I locate the unseen page?? FYI,...
1
vote
3answers
24 views

How to create a custom page(not a template) in a theme

I have been searching for theme developing info but all that are related to this subject are talking about a custom page at page.php. What I am trying to achieve is different. The scenario is that I ...
1
vote
0answers
112 views

Advanced Custom Fields dynamic update_field

I have a function that is triggered when a new review is submitted on a specific page. function rex_my_action ($review, $post_id) { $some_value = get_post_meta( 753, 'rwp_user_score', true ); ...
1
vote
1answer
28 views

How can I redirect to my custom page without loading the Dashboard itself?

I'm creating a page using: /** * Add the admin menu item, under Appearance. */ public function addAdminMenu() { $page = add_theme_page( esc_html__( 'Setup' ), esc_html__( 'Setup'...
1
vote
0answers
25 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...
1
vote
1answer
18 views

Remove ID page from wp_count

I'm try to create a pages counter excluding certain ID pages but the code don't work. I'm using this code. How can I fix it? Thanks. <?php $count_pages = wp_count_posts('page'); echo "$...
1
vote
0answers
20 views

Own Theme Customizer displays error message when saving, saving still works

Im currently working on my Customizer, and i just started off, when i reallised that there is a problem. I added a new section, control and setting to change the color of h1, and everything works in ...
1
vote
0answers
162 views

No Permission to add new Page, Post or CPT with Admin role

After a server update, I got some problems on my website, running WordPress 4.9.2 I could not update WordPress version to 4.9.4, cause I was getting a message like this: Another update is ...
1
vote
0answers
182 views

How to retrieve parent menu item name of current submenu item

I have a menu item Services which has 5 submenus. Now when I click on one of those submenus, like Flexible Endoscopes I manage to echo the title of child item or current page title. But I can't find ...
1
vote
0answers
50 views

Is there a better way to programmatically insert content into a page?

During activation of the plugin I'm writing, I insert a custom page. I can add post_content using the wp_insert_post command, which seems like a reasonable way to add a limited amount of content. For ...
1
vote
0answers
34 views

My page.php shows the index.php

Sorry for this simple question, I am very new to Wordpress. I have a simple index.php that show a view of posts, just the images. When I click on any post, it should send me to the full view of ...
1
vote
1answer
297 views

Adding Author and Updated Schema Markup to WordPress Static Pages

Google Webmaster tools is showing me some errors in the Structured Data section. The error says it cannot find author and updated information in some of the URLs on my website. Most of these URLs ...
1
vote
0answers
44 views

Trying to Edit a Page but it sends me to a Product Edit page

I have the strangest issue that I encountered. I have updated the newest version of Wordpress and installed Google Analytics GADWP Plugin and Yoast SEO. (I don't think this is the issue though) When ...
1
vote
0answers
38 views

Wordpress plugin/theme or other wayout to create portable pages?

Here is my problem - I have my production server running my wordpress site. I have mirrored the site on my localhost to play around and make updates before I push them to production. Staging process ...
1
vote
1answer
770 views

I can't edit my homepage - the page editor is just blank

I've been tasked with taking over the website for my company - going well for the most part, but I've hit a wall with the homepage. I'm trying to update the Latest Issue widget Problem is, when I ...
1
vote
0answers
20 views

Can't get done anything with admin.php response

So, i finally got some results with ajax hyperlink -> query to DB. And now i can see, the console, XHR admin-ajax.php post, with right results in jquery. Jquery code.Problem is, that anything i do, ...
1
vote
1answer
754 views

Role - edit page but not publish

I am pretty new at Wordpress.. So I have this problem: I need a user role that has the rights as a contributor but for pages. As I have no posts in my website the users will have to edit pages. Every ...
1
vote
1answer
78 views

How can I get the homepage from the loop?

From the get Get_Pages documentation (https://codex.wordpress.org/Function_Reference/get_pages) I understand it should look more or less like this: <?php $args = array( 'post_type' => '...
1
vote
1answer
95 views

Convert a complex webpage into WP theme

I am new to the whole WP theme development, but I have undertaken a couple of courses and watched a few tutorials on how to convert HTML/PHP pages into a wordpress theme. However, every single ...
1
vote
0answers
17 views

How to update the counter of private pages in the dashboard?

In my dashboard the counter of private pages shows 1, but the list of private pages is empty: Is there a way to recalculate the counters of pages and set them to the proper values?
1
vote
1answer
133 views

php page not found for plugin options menu

I'm trying to make an options page for a plugin and i'm getting The requested URL /site/wp-admin/plugin-email.php was not found on this server. every time i press 'Save settings'. Here is my code: ...
1
vote
0answers
40 views

Trying to return list of child pages for a template

I am trying to return a list of Child pages that belong to a template. I then show these on a different page. I have a Store, that has store child pages. On a products page (not related to the ...
1
vote
0answers
360 views

get_permalink returning site home url instead of the url of slug being passed

I am fetching some testimonials data from db and based on the slugs, I am getting the links to use further. Here is my code function createPageForTestimonials($slug, $title, $content, $companyName){ ...
1
vote
1answer
64 views

Populate editor with some content of a page with a page template

I have a page template like "page-salespage.php". what i'm trying to do is show default content in tinymice editor when this page template applies to a page. here's how i tried to achieve this, but i ...
1
vote
1answer
96 views

Any Ideas for Including “More Tag” with get_pages($args)?

I have run into an interesting issue. My intention is to have a front-page.php that displays a list of pages, with titles and content (some of which may be truncated with tag. I have augmented the ...
1
vote
0answers
35 views

Tell the difference between a term and page when they have the same ID

I'm building a branching navigation that displays pages, children pages and a custom taxonomy (named region/s). Everything works as intended except in any instance where a region/page have the same ...
1
vote
1answer
290 views

How to add pagination to a single wordpress page with lot of text

I create a new page in Wordpress and add a lot of text to it. how to add pagination to this WP page?? I have tried using <!––nextpage––> which doesn't work in a page. *most of the pagination ...
1
vote
1answer
216 views

Combining 'depth' with 'include' in wp_list_pages()

I am using wp_list_pages to display my navigation that contains only specific top-level pages using the include parameter. However, I would like to display the child pages of those top-level pages. ...
1
vote
0answers
282 views

Get the url of a page template without using the page slug and ID

Can I get the url of the page "page-template-contactus.php" using "template-contactus" only?
1
vote
0answers
97 views

Get the 'Content Permission' roles as defined in a page

As you can see in the image, I have assigned student level 1 to a Page in WP admin. I am building a custom page.php on my own and I am trying to redirect the user back if they were not added. I try ...
1
vote
0answers
16 views

Pages are hashed as of today

Beginning 1/24/2017, some pages of my site (psychological.com) will recurrently appear as hash (see below). A refresh may remove this but it will recur. It is not solely on blog entries. It is also ...
1
vote
0answers
59 views

posts_nav_link(); picks up index.php instead of category.php as template

My index.php and category.php pages are different especially in regards to query_posts function. Both themselves works fine, however when I navigate to "Next Page" via posts_nav_link();, index.php ...
1
vote
0answers
14 views

Having wordpress page accesss issue under sub-directory

I have hosted website at sub-directory but pages content is not showing and only header and footer display at pages. My index file have this code for pages display. It was working fine at root ...
1
vote
0answers
13 views

Static page determines as home, but it is not

I've registered post type with slug services, which means that all content will be under example.com/services. Than I decided to remove it, so I deleted this code from functions.php. Now when I ...