Questions tagged [pages]

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

649 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
2answers
475 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
169 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
3k 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
80 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
69 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
0answers
57 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 ...
2
votes
3answers
37 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
659 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
1answer
11 views

Column Images Showing Gaps

I am using Wordpress with an Avada theme. At the top of the page I have a fusion slider. Below this I am setting up a containers with 2 columns. For each column I have inserted an image. I cant work ...
1
vote
0answers
14 views

“next page” of parent in infinite loop

I'm trying to include a "Next Service" button on a website that hopefully take you to the next page under the Services page (Parent) so no matter which service you are on, it can loop through to the ...
1
vote
0answers
14 views

WordPress redirects me to posts page after editing one page

I'm looking for some help on this since it has just started happening for no apparent reason. Recently, when I have been making an edit to my 'Teams' page on my site, the Preview and Update buttons ...
1
vote
1answer
5 views

Adding New Users to Your WordPress Site for edditign only one page

We are an office in The university business incubator as one company and in site of the university, so i want to know is there any module to creating restricted account only for only editing one ...
1
vote
0answers
13 views

Getting to a specific page on website using specific code instead of navigation bar

Is there a way get to a specific page on a WordPress website by entering in a code instead of going through the navig
1
vote
1answer
10 views

Can't see content on page to edit

complete noob here, so please bear with me. I'm trying to edit a page in wordpress made by a coworker who's on vacation, but I don't see anywhere on the page where I can edit code or use the visual ...
1
vote
0answers
28 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
23 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
32 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
643 views

I Changed the Menu Order, But the Page Order Didn't Change on Front Page

First-timer here! I'm trying to change the order of pages on my boardgame webpage, as displayed on the top banner www.mangakagame.com . Basically, I've used "Edit" in the Dashboard and adjusted all ...
1
vote
1answer
41 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
28 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
131 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
31 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
21 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
21 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
210 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
226 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
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
367 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
39 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
830 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
22 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
893 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
100 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
98 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
18 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
139 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
46 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
372 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
69 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
106 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
36 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
341 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 ...