Questions tagged [pages]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
840 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 ...
0
votes
0answers
58 views

how to setup subdomains for pages?

how can I give specific subdomains to my pages like mypage.example.com instead of example.com/mypage already tried all plugins available but no results also manually created a subdirectory for the ...
0
votes
1answer
57 views

How to approach need for virtual page on my WP site?

I have a WP site and need to make all URLs like /fruits/apple/ and /fruits/banana/ lead to the same dynamic page e.g. rewritten as such: /fruit-template?id=apple At the moment I have created the page ...
0
votes
3answers
58 views

Get $post Object from another page

This is a rather simple question, so I'll keep it short. Update1: In this context {page-structure} means just that: page1/page1-1/page1-1-1/{...}. Update2: For further clarification, I want to do ...
0
votes
1answer
34 views

Order pages by date

I'm trying to make a onepager and load all my pages into one page, if that makes sense? Right now it gets ordered by alfabetical title. I want it to order by date. This is the website: http://...
0
votes
2answers
126 views

Change is_front_page() to is_page() to display 'hero' on entire site?

In the Velux theme functions.php there is this: if ( is_front_page() && is_active_sidebar( 'hero' ) ) Which apparently means the Hero widget only functions on the home page. I used that ...
0
votes
1answer
84 views

Edit Parent page drop menu when creating a page

Please can someone tell me how to remove all items from the 'Parent' drop down when creating a page apart from a few items? (Loop through and remove all that are the ones I want).
0
votes
1answer
181 views

How to exclude authors from get_pages()

I am trying to filter the results for the wp_dropdown_pages function by author, here is what I have so far. $dropdown_args = array( 'post_type' => $post->post_type, ...
0
votes
1answer
151 views

calling pages instead of posts

In my template, in the functions file, a developer created a code to show the last posts of various blogs (wp mu) on the homepage. I would like to edit the code by showing the pages in place of the ...
8
votes
1answer
3k views

How to set post slug when using wp_insert_post();?

My theme uses a custom template to render some contents. To use this template, I'm hooking into after_switch_theme to create my own page after the theme is activated, and then assign this template to ...
0
votes
1answer
320 views

Category URL to use same string as Post URL Permalink

I want to set up my site to have the following permalink structure: /learn/%category%/%postname% So in the permalinks section of wordpress, I set that as the custom structure. The issue is, when I ...
3
votes
3answers
1k views

Custom Search Page Pagination Not Working

My Seach Page URLs: https://www.example.com/search/keyword/page/2/ Here my custom search page: <?php if($_GET['search_text'] && !empty($_GET['search_text'])) { $text ...
0
votes
1answer
1k views

How To Render Shortcode In AJAX Response?

Problem I have a one-page layout that displays an accordion looking WP menu of my page titles. I'm using AJAX to load and display the corresponding page's WP content into a div thats get's inserted ...
0
votes
1answer
300 views

Add_Meta_box to custom page (formidable edit post)

I'm working on a minor "project" on my wordpress site, and im trying to add a custom metabox to the formidable - edit post(page?) screen. But i seem to be unable to figure out how to do it. ...
1
vote
1answer
248 views

wp_insert_posts keeps adding multiple pages

I have a function that creates a page but I only want one page and the code below keeps adding multiple pages (2 at a time). Is there a way to only add one post? I tired this solution but it didn't ...
0
votes
2answers
38 views

Why Google map can not show full size in a page?

In WordPress page in put google map Embed Code like this <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d805184.6317849847!2d144.49269473369353!3d-37.97123702210555!2m3!1f0!2f0!...
0
votes
1answer
18 views

Wordpress display page information rather than post

I'm new to WordPress and trying to turn a website into a WordPress theme. At the bottom of the index page (static page) there is an area for the two latest posts. I have created two dummy posts on the ...
1
vote
1answer
172 views

View Private Published Page with URL Code (no login required)

The goal is to easily allow for larger entities/clients to review content without having to have a user login/account for every project stack holder involved by providing a single URL to the final ...
0
votes
2answers
2k views

Get parent of current page

please help me: I need to get the parent of the current page, in other words: to get the parent of $direct_parent.Thanks! <?php global $post; $direct_parent = $post->post_parent; $...
0
votes
1answer
47 views

Remove taxonomy widget from “PAGE” post

For internal purpose I created taxonomy named "CLIENT" for the "PAGES" post . It's generated a widget in pages (picture below). I use ACF to manages my client categories (I create a specific field) ...
0
votes
1answer
32 views

Post Category link is same with Page link

Right now, our posts category is displayed as: /[category-name]. So when we have a post category named "Matcha" and a page named "Matcha", they have the same links and http://sitename.com/matcha ...
1
vote
1answer
88 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
97 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
1answer
2k views

Remove child products from woocommerce category page [closed]

I have a taxonomy template that display products from both parent and child terms, how can I show only the products belonging to the parent terms? I'm trying to modify somehow this part of code: ...
1
vote
1answer
76 views

When clicking on menu item not going to specific page

I have a menu with 4 list items and i have 4 php files with different page structure. And when i try to navigate to to other page i'm getting that requested url was not found. I don't know what ...
1
vote
2answers
30 views

Proper way to implement/access a built-in page in my theme

My theme has a top menu bar with accessibility shortcuts (jump to content, high contrast mode, etc). I need to include a link to an informational page describing the accessibility features available ...
0
votes
1answer
55 views

How can I show page per category in wordpress? (Yes, category by page!)

I've added categories and tags to pages, but now I'm trying to add these to a page, but it doesn't show anything unless I add the category to a post... Could someone take a look at what I'm doing ...
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
26 views

Custom page template with entirely different design. Is it possible in?

I'm trying to create 2 different page templates for a website here. The idea is that admin should be able to select this new template for specific pages at the time of creating it. Also, they should ...
0
votes
1answer
37 views

How to manage a custom post type archive as a page?

Is there a way to manage a custom post type archive from the Page editing view? I need to retain a certain url structure (so I need the formal wp archive), but also to be able to add images and ...
0
votes
1answer
288 views

URL Rewrite - Page Archive

I'm trying to get a custom URL rewrite in place but having issues. I have a page called 'Programme' which uses a custom query to list a post type called 'event'. I'd like to pass a month and day ...
1
vote
4answers
1k views

How to create a page when a theme is activated?

I want my theme to have an 'about' page available by default when a user uses my theme. Is there a way to auto create a page when a user selects your template? Or some other way of achieving this?
0
votes
0answers
269 views

Add and Custom category for posts “PAGE”

I want to create custom category page for posts "PAGE" for an internal use. The categories will be the list of the clients I want to remove somes fields (like slug, description, parent category ...
0
votes
2answers
73 views

Multiple pages per post (not pagination)

I'm making a movie database and need to have multiple pages per post: details, cast, recommendations, reviews (something like IMDb). I would prefer to not use any plugins if possible. I'm not new to ...
2
votes
1answer
50 views

How to re-order pages en-masse

The site I'm working on has a few thousand pages, each of which is an address listing. I need them sorted by a) street name, and b) address number. I can go through each individually and change the ...
1
vote
1answer
633 views

Can't load WP function into external function

I created a bookshop website and got header function, footer function and login menu on my front page. All functions are declared in functions.php and connected to hooks. My front page runs ...
0
votes
0answers
31 views

How do I display images with matching text in the search results page? [duplicate]

My site is a bunch of images in wp default galleries with separate links on separate pages not posts. I want my users to be able to enter a search term and have the results page display the images ...
0
votes
1answer
446 views

Include images from pages in wp search.php results in default wp search

Is there a way to include page images in wp search? Like I want to search through my sites images on pages not in posts by caption/alt text and display them in the results page as thumbnails.
0
votes
1answer
35 views

Two different layouts for the same post

I'm making a newspaper, and I want to have two different options for viewing posts: "web" (for viewing with laptop, smartphone, etc.) and "billboard" (dynamically cycles through the content; meant for ...
0
votes
1answer
45 views

Play Video on Homepage Only

I've got a video running on my homepage, and I've added the JavaScript below to make sure it plays / loops etc. Which all works fine. However on the other pages of the site the javascript effectively ...
0
votes
1answer
68 views

How to add page numbering with php?

I made a custom php page for a category, and want to restrict the max limit of posts per page to 5, and have next and prev buttons. Can someone help? <?php /** * Video Template */ get_header(); ?...
1
vote
1answer
30 views

Dashboard :10 Last draft page and 10 last pending review page (metabox)

I want to display on the dashboard for some users role (Admin, editor and auther) . a box with 10 last draft page and 10 last edit page. For the 10 last edited page I use the custom below : ...
0
votes
1answer
58 views

How can I change the background color of a contact box? [closed]

I want to change the background color of this example contact-box but I haven't been able to do so.
0
votes
1answer
338 views

Remove and change pages label

I want to change the search pages label and remove the numbers of items. I Want also to modify the number of the visible pages on the listing of the pages now it's 20 pages. Solution : function ...
0
votes
1answer
218 views

My page title turns into a h2 tag - What to do?

When i create a frontpage or another page or post, the titles i choose in the editor become h2-tags when the page or post is launched. I would very much like this to be a h1-tag instead. Can i change ...
1
vote
1answer
3k views

get_pages() & “child_of”

I am watching a wordpress tutorial on Youtube about get_pages() and "child_of": (from 17'28" to 18'35") https://www.youtube.com/watch?v=GHTZn3atTcM To check with a page has child(ren) or not, he ...
0
votes
1answer
826 views

Display child page content of a specific parent on home page

This has been bugging the hell out of me, it should be so simple! I have a list of child pages under the parent called 'Our Homes'. The sitemap structure is as follows: Home Our Homes home 1 home ...
3
votes
1answer
9k views

Multiple is_page() in page.php

I'm trying to add multiple page IDs into an if else statement. This is my code so far: if ( is_page(ID) || is_page(ID) ) { get_header('header_alt'); } else { get_header(); } I tried a ...
0
votes
1answer
587 views

Posts and Pages: 404 Page not found

Every post and page is not found. I checked .htaccess, generated a new one, debugged (disabling plugins), checked the static page and the blog page, also nothig. The last thing I did was check if ...
-1
votes
1answer
23 views

Is it possible to keep the page title from actually appearing at the top of the page?

I want the pages named and not left blank for organizational purposes, but can I keep the titles from actually showing up on the page? I've looked everywhere.