Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pages]

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

0
votes
0answers
8 views

Dashboard and Front End working but Edit Page/Add Page give me a blank page

My WPLMS site and dashboard are working normally. However when I go to the pages and go to edit a page, it takes me to a blank page with no content and no error message. Editing course content ...
0
votes
1answer
22 views

How can I view the components (HTML, JS, PHP) of a WordPress page?

I've taken over a WordPress project after the previous "developer" (looking at his code, it's hard to call him that) has messed the client around. I don't have much experience in WordPress. How would ...
0
votes
0answers
13 views

How to lock a page wordpress with ads?

i would like to know if there is a method to lock a wordpress page with ads. I explain better, i would like to lock some content but at the same time to let my users read my content only after they ...
0
votes
0answers
23 views

Remove pagination when using Rest api to display posts

I'm using Wp Rest API to display all the posts in one page and the problem I have is that WordPress is creating several pages "example.com/articles/page/2" etc... which is a duplicate of the first ...
0
votes
0answers
21 views

How to filter a page title with custom taxonomies

I'm trying to hook a page title using is_page() and its ID 1637 along with two taxonomies serie and area. But I can't get it to work. am I missing something code: add_filter( 'wp_title', '...
0
votes
0answers
21 views

Can we use WordPress pages inside any web application like any html pages?

Can we use WordPress pages inside any different web application as a popup help which can have few links to describe how application works? If yes then how?
0
votes
0answers
10 views

Custom post types & Pages hierarchy - Error 404

I've defined two custom post types: Theme Fiche I've also 7 pages using a defined rubrique template: (template-rubrique.php) Both my Theme and Fiche have an ACF post-object field. The Theme ACF ...
-1
votes
1answer
30 views

custom post type single page template not working

I created a page portfolio and select template Portfolio Template My portfolio page does not access the template-portfolio.php file. In which also includes content-portfolio.php in template parts ...
0
votes
2answers
37 views

Static Page with php echo [duplicate]

I build a static page in my WordPress root folder. Now I'm trying to include a list of my categories with echo clpr_categories_list();. Its not working because I some how have to tell the static page ...
0
votes
1answer
21 views

Wordpress 302 Redirect to Random Product/Post/Page

I'm trying to add the ability to redirect a user to a random product/page/post url similar to example.com/page/random which would redirect to example.com/page/oneofmany. This question is not ...
1
vote
4answers
33 views

How can the plugin directory path be returned into <script> </script>?

How can the plugin directory path be returned into <script> </script> instead of hard coding the path? Here is the custom-page.php: <?php get_header(); ?> <script type="text/...
0
votes
0answers
16 views

Display posts with datas of custom database table

I think the title is not very explicit, but I don't know how to name it ! Well, I'm totally stuck on a question: To make it simple, I work on a site referencing places and their information. These ...
0
votes
1answer
25 views

How can a .css file be applied to a virtual page?

If creating a virtual page while keeping the theme intact using the following plugin wp-virtual-page-tutorial, how can a .css file be applied to this virtual page? How can this be done using an if-...
0
votes
0answers
10 views

New posts aren’t part of data pulled through query/array

OK – loads to unpack here: 1 – there is a template that we have (PHP) that works for all of our pages except for 1 new one (ruled out anything being wrong with the template [hopefully]). 2 – the page ...
0
votes
0answers
9 views

Create a default parents for children pages that have the same parent in the menu

Here's my problem: I'm building a website and my goal is to create a nice menu that will interact with the pages. So far so good, except for one problem. The structure of my menu is something like ...
0
votes
2answers
25 views

WordPress blog posts template bug

I'm facing an issue I've never seen before. I fully copied a WP website to my localhost machine and everything was looking fine. When I was trying to make some changes on the blog page template (that ...
0
votes
1answer
9 views

how to put post customized in page

can someone help me please? for example i decide to open web about cooking one of my pages is about posts of how to cook.... the post is full details,but i wanna put only one picture of it (just like ...
0
votes
1answer
16 views

post and page and custom post type

I have been struggling with this, please correct me if I am wrong Posts are used for time sensitive information - like blog posts Pages are used for non transitive information - like about us and ...
0
votes
0answers
21 views

Visual Composer disabled overnight for anyone but the admin

I have been using visual composer on my site for about a year now with no issues but today when anyone logs in who aren’t admins , they no longer get to use visual composer to edit anything and ...
0
votes
1answer
21 views

List of pages of a specific user

How to get list of pages of a specific user? And show them in a WordPress page. Say i have page1 , page2 , page3 , page4 created by User1 . How to list them in a page like this: page1 created: 1/1/...
0
votes
0answers
10 views

Way to collapse pages in menu (explorer style)

I have a menu containing a dozen pages. This menu lives on a widget on my sidebar. I'm looking for a way to collapse this menu, to hide all the pages except for the first one or perhaps the menu ...
0
votes
0answers
21 views

Child Page with custom queried page not working in wordpress

I have created a custom post type in my wordpress theme. In that i have kept area taxonomy. I have created custom page template also for this if the page is parent then it works fine. If i keep it as ...
0
votes
0answers
7 views

Link page featured image with category page

I am new to wordpress. I have different topics and want to categorise them under different lessons. Ex: (Category)Lesson1 —> (posts)topic1, topic2,topic3 (Category)Lesson2 —> (posts)differenttopic1,...
0
votes
0answers
8 views

Cant Edit Home Page - Home Page Missing From CP

Just FYI, i have been using wordpress for about a year, I have a decent grasp on it but I am still learning the industry. I have a website im assisting a client with where their home page needs ...
3
votes
1answer
43 views

Why do I need to use The Loop on pages (inside page.php etc)?

This question is addition to the following question. The answers to the linked question say that you have to write THE LOOP inside each php template file, but what is still open is WHY? why is it ...
0
votes
0answers
23 views

Parent Page set, but not appearing in list

Here's a though one. I imported pages with WP All Import (support asked, has no idea) where I set the ID of the parent page. Now in the pages overview I see one or two lines before the page name ...
0
votes
0answers
29 views

Published page shows not found but others work

I created a page, that works. I want it to be the parent of the ones I need… so after I did that one, I then created a page, just put a title, named the page and then put one word on it, then ...
1
vote
1answer
27 views

How to create a Page alias in WordPress

In the image you see... WordPress has alias for Pages like Home Page, Checkout Page, Privacy Policy Page and any appear beside the page you assign them. How to create this feature in WordPress? If I ...
0
votes
0answers
10 views

Detecting if a Youtube video has been watched and change something on a page in reaction to it

Every of my Youtube videos has a dedicated Wordpress page. I want to detect if a video has been watched (say for example for 80%) and in reaction to it, I want to change something on it's page (I want ...
0
votes
0answers
11 views

Can we publish a page with really large amount of words?

We have a page with a linked list of all the posts in a category. The post authors are prolific, and the page is very long. It's so long a list that Wordpress truncates the page before all its lines ...
0
votes
2answers
25 views

Can I link to content dynamically from a page to a new page?

I am new to Wordpress dev, and I have a page that loops through some custom fields(repeater) of people. I'd like each subfield link to go to another page that has more info from that person on the ...
0
votes
0answers
16 views

Targeting specific page with CSS does not work as expected

I would like to target a CSS display rule for the header wrapper element of a landing page as done million times before, and still I don't get it to work properly. I use .page-id-10071 #wrapper ....
0
votes
1answer
21 views

Display different pages based on form entry

In addition to 3 public pages, my site has 20 private pages, each of which are built for an individual customer. I want a user to be able to come to a public page, enter a customer code, and display ...
0
votes
0answers
24 views

Wordpress Templates missing

Woke up this morning to a broken website because my wordpress templates that come in my theme are not showing in the "Page Attributes" section on the page editor. Any clue to why they disappeared? I ...
0
votes
2answers
23 views

ACF: Echo page title when checkbox is checked

How can I show the title when a checkbox is checked. I use Advanced custom fields my field name is nav This is what i currently have. <?php if(get_field('nav')) { ?> <li> <a href=...
0
votes
2answers
30 views

How to echo every parent page title?

I have like 5 parent pages and would like to echo all their title's on the front page.php. Maybe with get_the_id(); but don't know how.
0
votes
0answers
29 views

Why is one specific admin account hanging on the Posts page?

A client told me that one of their admin accounts wouldn't load the Posts page. I tried it myself and experienced the same issue (it hangs for almost a minute, then throws a 502 error). Strangely, ...
0
votes
0answers
21 views

Excerpt option unavailable in Screen Options no matter what I do

Excerpt option is unavailable in Screen Options even after adding php function to the functions.php file. add_post_type_support( 'page', 'excerpt' ); (Yes, I added it in the proper place on the ...
0
votes
0answers
16 views

Not allow add New Page for role 'editor'

Sorry for my English first. What I want to achive is, that it is possible to change existing posts and not possible to add New Posts for the user role "Editor". Is it possible with wp caps or do I ...
0
votes
0answers
16 views

What is the best approach to create Pages with same Page Template but different post types?

The goal is to have something like this below in Wordpress: Three pages : Cars Movies Fruits Three Post Types cars_posts movies_posts fruits_posts Each Post Types have multiple posts ...
0
votes
1answer
13 views

wordpress custom posts page not showing

In Wordpress I created 2 templates : The first template is a custom homepage The second template is custom page for for post results(search by category, search by keywords) After that I specified ...
0
votes
1answer
17 views

If page or sub page not working as expected

I would like to display a specific dynamic sidebar the the "about" page and its children. From the codex, I have tried the following: <?php // Begin main loop if ( have_posts() ): while ( ...
0
votes
0answers
10 views

How to edit hidden wordpress page content

Dear Professional colleague, I am new to wordpress I just managed to setup xmamp, restore a backup. I tried viewing and editting the pages content, but the pages are empty in my local server. Please ...
1
vote
1answer
45 views

Getting a 404 error when clicking edit page

The problem I've run into is the WordPress for my website yesterday randomly stopped allowing us to edit any of the pages. Every time you click to edit a page it comes up with a 404 error. Things I ...
0
votes
1answer
33 views

Use same page-mypage.php template for several pages

How can I use the same page-mypage.php file for different pages, without resorting to page templates?
0
votes
1answer
24 views

How do I customize the post page

I'm currently trying to add an post page on my Wordpress website. I put my new post page as the default post page, on Settings -> Reading. The id of my page is 353. So I created a new php file named ...
0
votes
1answer
28 views

Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately

I recently changed the theme and added https//: to a blog I'm managing. Since then I have found that when I click on a link going to a blog Post, the website takes about 10+ seconds to begin loading ...
0
votes
0answers
19 views

How to clean out old/unused pages?

We've got a WordPress site that has been running for over 10 years and is closing in on 1,000 pages. We know there are quite a few pages that haven't been accessed in a long time and we'd like to get ...
0
votes
2answers
17 views

Enabling plugin on specific pages and subpages

To increase the loading speed, I would like to only enable Event Manager plugin on the pages where it's actually used. For that, I wrote this piece of code: // deregister unnecessary plugin scripts: ...
0
votes
1answer
20 views

How to create “custom page types” with different custom fields in them?

I have lots of pages that perform very different purposes in my website (landing pages, thank you pages, regular website pages, webinar pages, etc). As such, I would like to group my pages into ...