The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
3k views

Wordpress menu permalink redirects to wrong page

I have created a new pricing page that contains a new pricing table. I renamed the old page Pricing to Pricing-old. Also deleted the permalink and hit OK so that the new permalink is set to /pricing-...
0
votes
1answer
151 views

Custom page with queries returns 404

My question is very simple. I created a new custom page template called page-printable.php. Then, I created a page with slug printable. If I access the page with localhost/printable or localhost/index....
0
votes
1answer
168 views

get_the_title() gets printed out twice

I made a script which checks if the currently viewed page has a parent page and if it does, it prints both the parent title and child title. But if there is no parent page I still get a title of the ...
1
vote
0answers
196 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 ...
0
votes
2answers
68 views

Use content from one page in another template

I'm quite new to WordPress and wonder if there is a way to take the content in a normal page created in WP and show this content in a div tag through a page template? The setup is two divs next to ...
0
votes
0answers
34 views

Sup pages can't be found

I am currently learning about creating and modifying themes for WP and I am stuck on this one thing. I see that there are a lot of people with similar problem but I didn't find a solution to mine. ...
0
votes
1answer
140 views

How to add prefix slug in static wordpress page?

I have a static wordpress page - http://example.com/trade. I need, that this page open on http://example.com/tender/trade. So, how can I add 'trade' prefix in this case?
0
votes
1answer
17 views

How to have sample page for each new register users in a membership website

I have a membership website where my users can create their own page. I have some pages which I want every new users to have them (duplicate my page as their own). For every new users I have to ...
0
votes
1answer
68 views

How to disable users to view Other pages

I have a membership website where my users can create their own page. I use below snippets in function.php to remove the options of published, trash etc. of other users and only show "mine". /** * ...
-1
votes
1answer
82 views

How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?

I am trying to bind javascript function calls to specific pages in a plugin I'm developing. All of the javascript functions and calls are located in IIFE's, one for the admin side, and one for the ...
0
votes
2answers
27 views

Alter existing page contents based on url

I have a created a stuff page in WP. When a user visits stuff/foo, I'm want to fetch some data from an API append it to the contents of the stuff page. So far I've tried: hooking into the_content ...
1
vote
0answers
51 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 ...
0
votes
1answer
99 views

Custom CSS is overwritten by WordPress?

So I made a new website for a club/ organization. My task is to update an old website on WordPress with this new website. I transferred all my HTML pages and CSS/JS files. However, some of my custom ...
0
votes
1answer
890 views

New Posts and Pages Won't Save

I haven't been able to save posts for the last week. When I try to add a new post, I can add the title just fine, and I can type the post, but none of the post text saves when I click Save Draft. I ...
1
vote
1answer
19 views

Split Conference Wordpress Page in different years

let's assume I have a page called conferencepage2018.page This would be a bad way of doing it since the conference is being held every year. What am I supposed to do if I want to split the Wordpress ...
0
votes
1answer
51 views

Trying to create a Categorised Index (archive?) to use as my Home Page

I am making a site that will have posts on several subjects, and often in multi-part posts. I would like a Home page that can display a Categorised Index, so that visitors can easily find the ...
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 ...
0
votes
1answer
23 views

pre-existing data, and entities

I'm new to WordPress, and I would like your opinion about the application I'm building. I have a database filled with a lot of data structured in a very nice and optimized entity design. I'm ...
2
votes
2answers
3k views

Restore contents of deleted user

I want to know if there is a way to restore contents of permanently deleted users from my WordPress page.
0
votes
0answers
42 views

Cannot pull WYSIWYG content

I am having trouble trying to pull then content from the page's WYSIWYG editor. The template index.php file is set up like nothing I have seen before and I am simply trying to sort this out. I have ...
0
votes
1answer
7k views

Get the Current Page Slug-Name

I want to Retrieve the Current Pagename , Inside my Breadcrumb , i tried many ways to get the idea work , but unfortunately they didn't work e.g : <?php wp_title('true'); ?> ...
0
votes
1answer
717 views

My Custom Post Type Still Using index.php

I Registered a New CPT , and it did works but , after working on something different , when i refreshed the page , i realized that my CPT turn to work with index.php . i think all is fine with my code ...
0
votes
2answers
50 views

is it bad to copy the loop for a template?

I have created a page template to display specific data. Is it a bad idea to copy the loop from page.php and paste it as is in the template file? Does this mess with the loop? Doing this has made my ...
0
votes
1answer
36 views

get_children returns older images

I am listing all attached images to published posts & pages, however older/removed attached images are being listed. I wonder if this depends on revisions (that shouldn't be considered at all) ...
5
votes
1answer
910 views

Page begins with number, WordPress adds 2

First, I thought I was going crazy and then after additional troubleshooting, it turns out I'm not! So, I wanted to create a page called 2017, but every time I create a page that begins with a number ...
0
votes
0answers
26 views

Use page-templates without creating theme

I have created 7 pages that are used for CPT and other information. I want to know if there is a way to call the page templates without creating them. I just want a more tidy interface for the user, ...
0
votes
1answer
58 views

Cannot update page - with too many characters?

I have problem with page update. I am tring to save more than 14230 characters. After "update" worpress is moving me to "Posts" page. I show this issue on this video: https://youtu.be/3Y8qgFEizBU ...
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 ...
0
votes
1answer
22 views

How to see the dashboard of a downloaded wordpress website?

I'm a web-developer(Html5,.net) but have never used wordpress or php. I have a few changes to make in the pages of my website. Now, I've got the folder containing wp-admin, wp-includes, wp-content. ...
1
vote
1answer
318 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 ...
0
votes
0answers
666 views

Wordpress form submit to custom page template does not work

I have a form on the home page, which when user submits, the action takes him to another page. That another page is using my custom made page template page-quiz.php. So for the form submit action I'm ...
0
votes
1answer
26 views

Very weird behaviour after removing WP pages

So I activated my custom made theme, which was working fine, with all the animation and everything, but body content was displaying the wrong elements. It was displaying all the standard widgets, like ...
0
votes
1answer
40 views

Disable parent in wp_list_pages - Wordpress

I have the following code the generates the sitemap. wp_list_pages( array( 'exclude' => '5', ...
1
vote
1answer
118 views

How to include local menu based on page id?

I am creating different pages, using templates. For example: page-blog.php. For certain group of pages, I would like to include a local navigation. If I use page.php I am able to include the local ...
0
votes
1answer
129 views

Removing add new pages form editor role

Hi I have set up multisite and I am the super admin. I want to remove the capabilities of "Editors" to add new pages. I made this change to my theme function, which removed what I want it too, ...
1
vote
1answer
160 views

Global variable $post returning incorrect object

In my header.php file, I've been trying to retrieve the slug of the current page, to check it's WooCommerce Products Archive/shop page. I followed this similar question's answer, to no avail; instead ...
0
votes
1answer
193 views

Add Password Generator on password protected page

I'm looking for add a password generator with 14 characters on the protected pages like in the picture. I search something like what is used when you create users but for page password.
0
votes
3answers
474 views

How to edit the font color of the H1 on a single page?

I'm working on a new site that includes memberships, and I'd like the Page Title to be a different color on the membership page without changing on any of the other pages. I've seen code that helps ...
0
votes
3answers
31 views

Detecting if I'm on a single, non-post, non-homepage page?

I'm trying to see if I am on a single page, this page is defined by: Is not the homepage for sure. Doesn't have any posts for sure. Here's my code: <?php if ( !is_home() && !have_posts() ...
-1
votes
1answer
220 views

CSS - Change height of Storefront / WooCommerce product categories, but not products

My homepage has both products and categories shown. My shop page has only categories shown. If I change the shop page category height, it changes the product heights also throughout. I can set the ...
0
votes
1answer
36 views

How to create wordpress page that lets users create their own quiz? [closed]

I am new to wordpress and I want to create a page that lets the user create their own quiz. Is there any existing plugin for that purpose? For eg. take a look at this: https://en.vonvon.me/quiz/940?...
0
votes
3answers
30 views

When changing pages to posts, how do you set up 301 redirects for the page URLs?

I recently found that an older, now disabled plugin that made scheduled posts was creating new posts as pages. I went into the database and changed post_type to post. The urls then changed to the ...
0
votes
2answers
381 views

Custom permalink for wordpress page / post

I want to set a custom permalink for a specific wordpress page/post. My expectation: 1) Go to specific wordpress page/post edit view. 2) Click edit permalink. 3) Type in new permalink for the ...
0
votes
0answers
287 views

Get current_post in reverse order with pagination

I'm trying to index my posts (in reverse) and I'm using current_count within loop to do this. This is my code: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args ...
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 ...
0
votes
1answer
24 views

Why last blog post excerpt is shown instead of meta description? [closed]

Instead of meta description of my main page Google shows excerpt from my last blog post. How do I fix that?
0
votes
1answer
16 views

Multiple Pages - Seperate blogs

I'm struggling to find out the following: I would like to have 8 different pages (so I have 8 different tabs), and each of them should look like an individual blog. I can't figure out how to do this,...
0
votes
0answers
232 views

Change URLs in default Wordpress slider to relative from absolute

I would like to change the URLs in my Slider, which was built with the default Wordpress Slider admin, to relative from absolute. I note that when I select a image from the Media Library the URLs are ...
0
votes
1answer
2k views

My custom template page not loading content inside it?

I want to create my own wordpress theme for that I have my own HTML template, I want to convert this HTML template to a wordpress theme So, I copied built-in wordpress theme "twentyseventeen" and I ...
1
vote
1answer
94 views

How can I load a PHP page without using a Template?

I've been building out a website within a WordPress 'wrapper', and it's been going reasonably well. I've got a Plugin that holds some of my code, and I've got a Theme that holds other bits of my code,...