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

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

0
votes
1answer
16 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
7 views

Pages missing in wordpress [on hold]

i have a website on tripod/ lycos publish and recently all my wordpress pages and content comes up with the error is missing temporary file for my media whenever i try to add to my media on this site ...
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
votes
0answers
11 views

Display Child Pages in “Accordion” Style on Sidebar?

Looking to Display Child Pages in "Accordion" Style on Sidebar. Surprisingly, can't seem to locate a plugin/widget that does this. If one exists would love to know. Thanks, Malcolm
0
votes
0answers
10 views

Searching for a Pages Widegt [on hold]

One that display parent child relationships in a "slide down" style. Similar to Easy Sidebar Menu Widget Thanks, Malcolm
1
vote
1answer
26 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
21 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
21 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
26 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
16 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
18 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 ...
0
votes
1answer
7 views

Unregistered taxonomy apears still as emtpy filter list

I unregistered a custom taxonomy form the theme I'm using: function wpse314876_unregister_taxonomy() { unregister_taxonomy_for_object_type( 'page_category', 'page' ); } add_action( 'init', '...
0
votes
0answers
13 views

How can I update the text displayed on a page without editing via admin?

I'm a total newbie when it comes to WordPress so apologies if this is a silly question. I've had a search around for an answer but no joy yet. Is it possible to update a specific item of text on a ...
0
votes
0answers
14 views

Simple logging page

Can I set up a page in WordPress that simply logs post request data on itself? So e.g. if someone does curl 'http://mysite.wordpress.com/comments'--data 'comment' the page should now conatain the ...
0
votes
0answers
19 views

How to restrict access to a page from all ip addresses except some?

I want to allow access to specific page only to pc-s from internal site.There are two gateways NAT for internal network.So we would like allow access to one page for two IP address. I tried this ...
0
votes
1answer
17 views

White space between products and navigation menu

I can't remove the white space between Home → Furniture and The 'sort by' bar. I am very new to wordpress and I'm not sure where to post this query. I have tried adding some css but not sure where to ...
0
votes
0answers
14 views

add Boolean / setting / meta data to PAGE via add / edit section of admin for use in theme

I would like to add an attribute / Boolean variable / meta data to a page when editing / adding via admin (right hand sidebar), that is then accessible by my theme for sidebar creation and navigation ...
0
votes
1answer
20 views

How to store queried custom data and use it in multiple pages?

<?php $contact = new WP_Query(array( 'post_type' => 'contact' // 'post_status' => 'publish' )); ...
0
votes
0answers
17 views

how to remove a content from a post?

so I use the following code to show audio player in a page which shows all the posts: $posts = get_posts(); if(is_page()) { foreach( $posts as $item) { $post_id1 = $item->ID; $file_id1 = ...
0
votes
2answers
34 views

All Pages visible on the Frontpage

I use the Theme Twenty Seventeen in WordPress to create my website. Here all pages are one below the other seen on the frontpage. Now I added a new page, but this is not listed on the frontpage. I can ...
0
votes
1answer
12 views

How can I send an email when someone uses the HTML download Attribute?

I am using this code (screenshot) to enable someone to download a file from my webpage: Is there a way to also trigger an email and have it sent when someone clicks on the download button?
0
votes
1answer
20 views

If I use a static page-slug.php for a page, is the database still queried?

I wonder how to display a static page in order to increase the page load a little bit: The first option is to put the content in the database (via the Admin GUI), the second option is to create a page-...
0
votes
0answers
13 views

Need to make two dependent selects with dynamic content

I have two select dropdowns, one of them for device type(smartphones,cameras,PC etc), second are models for every device. The first select(Device) will be disabled for selecting, so if nothing is ...
0
votes
1answer
21 views

How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]

Good Afternoon, I am having difficulty removing a duplicate H1 tag, which is located in my Site-Title-Wrapper, per source code. When I access "Edit Theme" and load the "site-title.php" I can see the ...
0
votes
0answers
12 views

Page is not loading is it the page template code?

I am having a problem when trying to load a page using a page template. Other page templates are working so this leads me to think it is the page template code which has been created. Can anyone help ...
0
votes
1answer
17 views

Adding styles/scripts to specific page

I'm trying to add styles and scripts to specific template, But it's not working. In functions.php I tried: if( is_page_template('file.php') ){} if( is_page_template( get_template_directory() . 'file....
3
votes
2answers
63 views

What is the difference between “post” and “page” in WordPress?

I understood that both post and page are coming under the same post-type but I noticed that both are showing the almost same layout and behavior. could anyone explain in short words? Advance Thanks
0
votes
1answer
11 views

catch urls with specific pattern and show specific content for them by plugin

I have written a shortcode in a plugin that shows some items. my shortcode: [showItems] now I put this shortcode in a page called items: http://mywordpress_site.com/items in this shortcode I only ...
-2
votes
1answer
18 views

Inject class in body when particular page template is used

<body <?php body_class(); ?> > In header.php I have written the above code. But I want when this page template is in use: page-customer.php then body_customer class should go above. ...
0
votes
1answer
48 views

Add button linked to single product page on order detail page

I have write a code on functions.php so when customers click a button on order detail page, redirected to product page and review tab of the product they bought. But as a novice coder, I can't get the ...
0
votes
0answers
39 views

How to make “single post” permalink maintain it's sub-page structure

I have a custom post type called "Classes", and I have multiple sub-pages for my site for each different schools classes page (which loops through said custom post type) I.E http://www....
0
votes
2answers
38 views

How to disable delete option for a specific page? [closed]

i found many questions like this but nothing matching to my requirement.Here i need to lock a specific page named settings,not to be deleted by other admins.But it should able to edit. Is there any ...
0
votes
0answers
7 views

Unable to edit and save changes after xml import

I'm trying to upload a framework for sites that i build. Basically just a home page with elements ordered in a certain way. After exporting and importing an xml file, everything comes in in the order ...
0
votes
0answers
15 views

Save & Share Cart for WooCommerce cart title use in cart page

I'm using save and share cart in woocommerce site and I create a page to load all saved carts title since plugin creates a posttype and I load each saved cart using same url plugin used in a email ...
0
votes
0answers
74 views

Woocommerce product page 404 not found

I don't know what else to try to fix this, i am working on localhost with laragon and i get 404 not found when i go to product link, the url is the same as permalink which i have /%postname%/ and ...
0
votes
1answer
33 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 ...
0
votes
1answer
44 views

Python in Wordpress - A “Hello World” implementation

I've read this question (and many more web pages) in order to figure out how to run a simple python script via a Wordpress plugin. However, I couldn't do it: I always get a "Blank" output. No errors ...
0
votes
3answers
28 views

How to select a specific page

I'm having an issue selecting a page. There are guides that tell you how to find the page ID and I just couldn't find it in the admin panel to figure out what the page ID is. If only there was a way ...
1
vote
1answer
25 views

Making a custom help center page

I am working now on a new WordPress theme and I want to make a help center system to allow users that will buy my theme do add helper articles. So my plan is: 1- Make a normal new page and create ...
1
vote
0answers
14 views

Pages views limit [closed]

Is there a option or plugin that can limit a number of pages user can view per month? Im trying to make a site with video and text toturials and I need to limit user to view only 10 lessons (pages ...
0
votes
0answers
13 views

When would it be best to hook AJAX functions on a back-end page?

I'm setting up my page as follows: add_action( 'admin_menu', [$this, 'addAdminMenu' ], 80 ); And its content: public function addAdminMenu() { $this->hook_suffix = add_theme_page( ...
0
votes
2answers
75 views

determine whether content is of type Page or a Post and display accordingly

I'm looking for a way to open every/any link to a blog post in a lightbox/modal globally and without having to any extra classes or rel attribute to the link element. I know I can access this info ...
0
votes
0answers
20 views

How can I use get_template_directory() inside a specific page

On my researches i learned that to acess specific asset you can use get_template_directory() and then append your filename. Like : <div class="img-box" style="background: url('<?php echo ...
0
votes
0answers
19 views

Is it possible to create blog posts that open as new landing pages? (i.e. can each new blog post be a new landing page)

We are a commercial real estate company that updates our properties by posting new blog posts into 2 major categories, sale and lease. I want to turn these blog posts into individual landing pages for ...
0
votes
1answer
28 views

How to pass page as an argument like post in WordPress?

I am using this code to pass arguments in posts: $args_automobile_just_launched_bike = array( 'posts_per_page' => 3, 'post_type' => 'post', 'order' => 'DESC', '...
0
votes
1answer
29 views

Can't get page content in WordPress

When I use the the_content() on page-about-us I can't get the content of the about us page from WordPress. I got only below warning Warning: count(): Parameter must be an array or an object that ...
0
votes
1answer
16 views

Wordpress displays widgets out of whack

I am using a piece of Javascript that creates a countdown timer that looks good everywhere else but on Wordpress sites. For example, this has been done with Ontraport page builder and it looks great. ...
0
votes
0answers
24 views

Processing URL variable and processing result into post body

In functions.php, I've added function add_custom_query_var( $vars ) { $vars[] = "registration"; return $vars; } add_filter( 'query_vars', 'add_custom_query_var' ); I've created a page template ...
1
vote
1answer
21 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/...