Questions tagged [pages]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
7 views

Problem With Pages Displaying

I am having a problem with any page other than my uncles home page displaying. The site was recently migrated from one host to another. The pages all show in the WP backend and are all formatted and ...
19
votes
4answers
29k views

Get page id by template

I want to know if it's possible to get the ID of a page with a specific template. Is this possible to get the ID of a page that assigned to "page-special.php"?
0
votes
1answer
8 views

Custom Permalink (with category) for Pages

I've been googling about this for last two days. No solution. I am trying to get permalink of pages like this... Domain.com/category/page-name.php There are couple of plugins that allow to assign a ...
0
votes
1answer
517 views

Hide Admin posts & pages in Dashboard

Is it possible somehow to hide Admin's pages & posts from dashboard so that other users will only view/list non-admin publications?
0
votes
1answer
26 views

Set different heights per screen size with inline styles CSS into the 'Text' section of a Page

I embedded a 360 Virtual Tour on a Wordpress page using the following code: <div align="center"> <div style="width: 75%; height: 75%;"> <div style="position: relative; padding-bottom: ...
0
votes
1answer
556 views

wp_nav_menu without menu or theme_location specified

Can someone tell me how the wp_nav_menu functions when no menu or theme_location is specified? I have multiple sites that use an interior navigation setup that does not specify the menu. It would ...
0
votes
0answers
28 views

Add custom action to the page listing screen

I'm creating functionality that will clone a published page and create a new draft page from the content. I placed an action link alongside the "Edit | Quick Edit | Trash | View" items that appear ...
1
vote
1answer
795 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 ...
0
votes
0answers
8 views

Pagination-url on frontpage, but no pagination visible or available

I have some projects, one of them is https://mhe.dk, where a customer has events, made with a custom post-type. If you visit the program-page (https://mhe.dk/program), you have some pagination that ...
1
vote
1answer
26 views

Missing Page, But Still Exists In Preview

A page went down and I get a "Page Not Found" error. I tried looking at all existing pages and the page is simply not there. It isn't in trash, either. However, when I created another page and hit "...
6
votes
2answers
414 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 ...
0
votes
1answer
542 views

Display content on Single page

I am building a single page theme, And I am having a problem with get_post_meta() The Problem This code bellow does not work, and I cannot see anything on the website as it's blank. Here is my index....
0
votes
1answer
466 views

static page with buton that opens collect email form

I am PHP programmer, but I am not familiar with WP yet (I do understand some basic things). I have static page and I have to place a DOWNLOAD button on this page. Click on this button will allow user ...
0
votes
1answer
562 views

Remove_filter ('the_content', 'wpautop') only pages

I would like to apply these two functions that remove <p> remove_filter('the_content', 'wpautop'); remove_filter( 'the_excerpt', 'wpautop' ); I would like it to only apply to wordpress pages. ...
0
votes
1answer
486 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ,...
0
votes
0answers
12 views

Allow a page to be edited by a specific custom role

I have created multiple custom roles using the members plugin by Justin Tadlock. Now i want certain pages to only be editable by the custom roles i select for them. Is there a plugin i can use for ...
0
votes
2answers
560 views

Edit Page Content not showing

I want to edit some pages, already built but I am unable to edit their content (Content is not showing). Although I have Administrator role/rights but not been able to edit pages those are built by ...
0
votes
2answers
28 views

How can I create a Custom Page? (not a page template!!)

I would like to have inside my theme folder, a folder where I can leave all the portion of code and snippets that I don't want to use anymore or I just want to save for a while, and accessible every ...
0
votes
0answers
8 views

Create a Resume custom post types and form using Buddyforms

I want to create a custom post type of a resume template that looks exactly like the attached image. I decided to go with Buddyforms, as it is going to be a frontend submission with a community ...
1
vote
1answer
832 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
1answer
479 views

Hooking get_pages()

On a site this is a plugin that uses get_pages() to make a list of pages. The list is used to create a list of pages and create next page and previous page links. ( http://wordpress.org/plugins/next-...
0
votes
2answers
641 views

Exclude parent with child pages from WP_Query

How can I query only those pages that DO NOT HAVE child pages? E.g.: Parent page 1 Child page 1 Child page 2 Parent page 2 Parent page 3 Child page 1 Child page 2 Parent page 4 I would like to ...
1
vote
1answer
605 views

How to make my category archive behave like a page

I don't want to use the category page as usual (list of posts). I would like to add more content: text, images, columns. Which is the best solution? Maybe redirect from a category page to a page? Or ...
0
votes
0answers
14 views

Loop to show WP pages, their children and their grand children and content of each

I needed to make a loop to get a list of pages and show the children and grandchildren for each page, as well as truncated content of each result. I couldn't find this as a question anywhere and this ...
0
votes
1answer
530 views

Category Archive not working for pages

I was wondering if someone could help me out. I have used this function: function add_taxonomies_to_pages() { register_taxonomy_for_object_type( 'category', 'page' ); } add_action( 'init', '...
0
votes
0answers
13 views

Added a ACF field to custom page and want the results to show as a column in admin

A developer made a custom page for our wordpress site and I've added a custom field at the top titled Serial Number. I want to add this field as a column to the admin page between Date Registered ...
0
votes
2answers
1k views

Show only top 3 posts from 3 categories in order on home page

This function will show the last 3 posts from any category on front page: // Only top 3 posts from CHR category add_action('pre_get_posts', 'ad_filter_categories'); function ...
0
votes
0answers
13 views

How to render main header navigation bar across all WordPress pages

I am building a theme using the Highend plugin in WordPress. In Highend Options > Logo Settings in WP dashboard, I overrode the default logo to implement a custom logo. This new logo appears to render ...
0
votes
1answer
748 views

User profile in front-end

I want every user to get a profile in the front-end of my website. So I want to visit website.com/user/user-name and view all the information of this user. Is this somehow possible? I would like to ...
3
votes
1answer
297 views

Callback for wp.autosave.server.triggerSave();

I'm using following code to force WordPress page to save post as draft, is there any callback function for it, I want to alert a text after it complete saving post as draft. if ( wp.autosave.server ) ...
0
votes
1answer
1k views

Count posts for pagination

I'm doing the pagination for a web. < Previous (pagenumber) Next > is easy, already done. But now I need to add a selector to go to a page directly (ex: to page 7), to do so, I need to know how ...
1
vote
2answers
29k views

Display a specific dynamic sidebar widgets on a specific page

I have had a wordpress site handed off to me halfway through completion. It's been at least a year since I last used wordpress and there are a lot of things I'm finding different. The way I am used to ...
8
votes
2answers
6k views

Keyboard shortcut for updating a page or post?

What is the keyboard shortcut key for updating a page or post? It could save me a lot of time as rolling down a page draft is time consuming.
6
votes
2answers
6k views

Show Default Editor on Blog Page ( Administration Panel )

In WordPress 4.2 it included a nice feature which labeled what page was the Front-Page and which page was the Blog ( Latest Posts ). Unfortunately, it also removes the default editor on the page ...
0
votes
0answers
27 views

Adding in additional pages into a custom theme

I have a simple site with a landing page and 2 additional pages( About, Work). I used front-page.php for the landing page. I'm not sure the best practice for adding in the additional pages. ...
-2
votes
0answers
17 views

Wordpress wp_post table changes not affecting the page

I have a wordpress site. Recently I have changed the domain. In the wp admin page, I have changed corresponding areas which is related with domain name. Site works but the content created with the ...
0
votes
0answers
49 views

Add CSS Class to Wordpress Menu Item Dependent on the Page the User is Visiting

I'm trying to have menu items show an underline under the related nav item when when the user on a specific page (image attached). In the static site version of the site I'm doing I had a php ...
2
votes
1answer
22 views

WordPress automatic and permanent page

When WordPress setup is complete, I want a page such as "localhost/contact" to occur automatically and make it permanent. In short, it cannot be edited and deleted in the panel. It should even be ...
1
vote
4answers
37 views

Add a Different CSS Class Into The Body Tag of Different WP Pages

I'm transferring a 20 page static HTML site to a custom Wordpress Theme. On each page of the static site the body tag has a custom CSS class i.e. 'banking-page'. I know that WP generates page id ...
0
votes
0answers
10 views

My edits are not saved

Everything used to be fine, but now for some reason I’m editing the record, but the old content remains, the new one for some reason does not appear. For example, I have everything stored in the pages ...
0
votes
1answer
584 views

Fatal error when accessing Pages in WP admin (and problems editing any pages)

I have a site that's been going for about 4 years with several hundred pages. I've had strange problems when accessing the Pages section (to choose a page for editing) and while in Page editing. These ...
0
votes
1answer
20 views

Wordpress pages creation work distribution & then combining - Localhost XAMPP

Is there any best practice for distributing Pages creation work amongst 4 people and then exporting & combine all their work. I was thinking for following steps: creating XAMPP setup on each ...
0
votes
2answers
18 views

How do I Name a WP page in the New(ish) Block Editor?

I'm building a custom theme and it's my first time doing this with the new(ish) block editor. Can I ask - where on earth to add the page title in the backend block editor? In the old editor you just ...
0
votes
1answer
12 views

How to list pages from an author?

I want to show the pages (not the posts) of an author on his author page. Is it a listing possible ? Many thanks in advance
7
votes
6answers
18k views

Check if is on child-page of a particular page

I am trying to output a logo depending on which page is being viewed. <?php if ( is_page('home') || is_page('services') ) { ?> <div class="col-md-2 col-sm-4"> <?php ...
0
votes
0answers
19 views

How to disable all blog pages?

i have a corporative website. i want to disable all pages e.g. author/tags/search/taxonomies EVERYTHING they shouldnt be accessible to anyone from the web except post and page types how should i do ...
0
votes
2answers
16 views

How to Disable Auto Executing Script in A Particular Page Only

I used this https://wordpress.org/plugins/mailchimp-wp/ plugin to add an opt-in form on every page. Now I want to disable a page to auto-insert this form and make a landing page. I'll use a different ...
0
votes
0answers
16 views

image only display in custom search

Please help me find a solution on displaying ONLY images in the search results. I’ve searched around and found nothing of such sort. I’m trying to develop an image content website similar to stock ...
0
votes
0answers
20 views

Editing Pages Icons Are Not Showing Up - Why is this happening?

https://prnt.sc/pgoou9 - check it out https://prnt.sc/pgop70 - here too. https://prnt.sc/pgopeo - however putting the mouse above them shows their function but still... How can we fix this situation, ...
48
votes
9answers
34k views

Check if wp-login is current page

How can I check if the current page is wp-login.php or wp-signup.php ? Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?