Questions tagged [pages]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Where can I find the URL of a page [closed]

I am having a hard time to finding the URL of a page as I like to refer to it in an app.
0
votes
0answers
12 views

Set a different downloadable element for each page in a sidebar

I have an educational website where a rule is explained on a page, and there is a downloadable PDF for each rule on the same page. I'd eventually like to include this downloadable element in a sidebar,...
1
vote
1answer
70 views

List all private pages user has access rights to read

I am trying to list all private pages that user has access to read. To explain in more details, below is the initial setup: Each user has a specific role created and assigned only ability to read ...
0
votes
1answer
9 views

Tags on page (not post) returns nothing - why? Improved clarified question!

Problem: I'm trying to echo tags to list items but only manage to echo the "else statement". Since this is about tags for pages I have added support for pages to show tags in functions.php: ...
0
votes
0answers
24 views

WooCommerce dynamic pricing [closed]

I'm newbie in wordpress. Is there a way to add a product to the cart with a custom price that is sent via url? I was looking plugins for woocommerce but I've found nothing that let me handle ...
0
votes
0answers
39 views

When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php

When I click on a link to redirect to 'single_assignment_page.php' it is not showing the content of this page but it is showing the content of 'index.php'. That's something I don't want but in the URL ...
0
votes
0answers
10 views

Enter a page by entering a mail

Can I make an access to a wp page just by entering a mail? Similar to the password situation where you can enter a password to access a page, but an email.
1
vote
3answers
37 views

Get page by its ID and display it on another one

I want to display a page with ID=1149 in a particular place on another page. For that I've tried with this: <div class="col-md-4 sidebarl"> <?php $args = array( ...
0
votes
0answers
21 views

Yoast breadcrumb URL shows category instead of the page

I have setup Yoast breadcrumbs in my category pages en posts inside that category page. Category page: home/diensten/ Post page: home/diensten/support/ When I want to navigate back from the support ...
0
votes
1answer
58 views

How to check if the current page is at a specified path in the URL?

I have a page marked as the Posts page that lists most recent blog posts. It is at path /blog. I want to know when the user is on this page so that I can display a list of categories of blog posts at ...
0
votes
0answers
28 views

My pages are using my Index.php and not my page.php

So I'm making a custom theme, I setup the theme Created my pages on wordpress then created my Pages VS code i'll use an example of one page for this: I created the talent page with the slug: talent ...
-1
votes
0answers
24 views

New pages or categories in wordpress posts

Let me show you an example on what I am looking for https://www.hardreset.info/devices/samsung/samsung-galaxy-a21s/ on the left is the menu. clicking on one of them will get you on a new page. BUT how ...
0
votes
0answers
7 views

Home page has reverted now to Post & Contact page email errors

Hope you can help, I'm a website novice. My Home page is on previews but won't display on twentyseventeen WordPress website, instead, it shows the Post page. The actual; post page is empty now. After ...
0
votes
0answers
9 views

Page archives indexed with static home page

I am using a page as the home page (not the standard blogroll). So now I have all my page archive URL's going to home page. For example: The following page is indexed in google search console: https://...
1
vote
0answers
26 views

Created php page in wordpress - Error Page can not be reached

I want to create a folder within wordpress site at root and add a php page abc.php with simple code like <?php echo "Test php page." ?> But when I try to run this page like this ...
0
votes
1answer
19 views

Please help a newbie with blog page issue?

https://diarmuidoconnorbooks.com/home/?p=1561 https://diarmuidoconnorbooks.com/home/?page_id=1355 The first link is to my post’s permalink. The second is at it appears when you go to the website’s ...
0
votes
0answers
12 views

Nested pages at 3 levels deep shows 404

I have the following page structure /insights/agenda/topics/ same on the menu too and I use the pretty permalinks. If I view the page, it returns a 404 error. I manage to view the page when I used the ...
0
votes
1answer
21 views

Wordpress custom pages in a folder

I cant find something similar I have a portal running WP and I want to create a mikro-site with 4 or more pages, under the same domain and let say I will name this : 'mikro' (I will use a different ...
0
votes
0answers
12 views

How to fetch WooCommerce products with 50% discount?

I want to make a deal page. where there will be different banners showing different deals and discounts. Now lets say a user clicks on the 50% discount banner he should be redirected to product page ...
1
vote
0answers
18 views

Using featured image from another page

I have the following code which, if a page is a sub-page of 'Portfolio' (ID 12), will use the featured image of the Portfolio page rather than it's own. However, I also have a page of 'Services' with ...
0
votes
1answer
27 views

Multiple array for post_content on plugin activation

sorry for my bad English. I want to create multiple pages when activating a plugin. This also works, but how do I get different content in the different pages? if (!current_user_can('activate_plugins')...
1
vote
2answers
55 views

Function only on a specific page

I am trying to run a function only on one page or other pages in the future if I so desire. But I dont want to run it site wide. I need help on how to put the if is_page or if is_single. // disable ...
0
votes
0answers
17 views

How to display products sort by Tags for Woocommerce

I have tried to display products by tags on shop page, i found this code and it workes perfectly $args = array( 'number' => $number, 'orderby' =&...
1
vote
1answer
24 views

is_account_page() change to page slug

i'm really new to wordpress php. which function should i use to replace is_account_page() in a code. here's what I'm trying to achieve before if (is_account_page()){ do some code here } after if (...
0
votes
0answers
8 views

Programme sections for blocks on admin edit

Hi not sure how to explain this but here it goes. Basically I'm quite new to wordpress development and I am trying ot create a website for a client. What I am strggling with is creating predefinded ...
1
vote
0answers
8 views

Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?

Sorry if my question sounds a bit confusing. So I have a page "About" and currently, I also have a Custom post type "Our Team". I've set all the posts under the "Our Team"...
0
votes
0answers
19 views

Is there a way to add a featured image to an image/file attachment page?

So what I'm wanting to do is be able to use the url of an attachment page for a PDF file, post that link on Facebook, and be able to customize the preview/featured image that shows up there. I've ...
0
votes
0answers
34 views

How do I open a post in a custom page in wordpress?

I'm new to coding wordpresst themes. I made a whale loop on the index.php page, by clicking on the link I want the post to open on another page.php. Do I need to change anything to Permalink or? The ...
0
votes
1answer
11 views

Adding LOAD MORE on a page

So I have a blog with different pages and categories and I add each post manually and link it with the URL instead of using post grid. I only want to show 10 posts at a time and add LOAD MORE text ...
0
votes
0answers
7 views

Translate Pages Of A WordPress Site Into Subfolders

I have a client who wants some pages on a website translated into Cantonese (they are hiring a human translator to do this). Looking at this subject is seems that to translate web pages you set up a ...
0
votes
1answer
29 views

My site does not load but downloads a file (wordpress)

Can someone help me to find a solution for my site. when I install a cache plugin either WP rocket or W3 Cache my site gives a download file when I try to access it and the page wont load. this all ...
1
vote
1answer
14 views

Permalinks for pages

Why can't i edit the permalinks for my pages? I got a 4 layer structure, Home Solutions Machines Steel so I want my URL structure to be www.domein.com/solutions/machines/steel but where can i do this??...
0
votes
0answers
15 views

Use a custom page with dynamic content as a user profile page

I'm trying to create a website with fully customised user profile pages. I've created the page which uses dynamic content to pull user custom fields into it, this works fine to view your own profile ...
0
votes
1answer
27 views

How to add some html formated text to every new post in WordPress

I create posts in which similar text is repeated to me. Therefore, I would like to make my work easier, and therefore I want every new post to already contain this text. Example: Each posts contains ...
0
votes
0answers
12 views

Randomize post (and page) IDs on generation

I'd like to have my post (and ideally page) IDs being random (not sequential). Just like what this plugin does, but for posts and pages - for an added layer of security (not that my tiny site needs it,...
0
votes
1answer
10 views

Attaching a file to a page without adding to media library?

We are using WP for our new intranet, which will primarily be used for documentation and archiving. We have some pages where we want to attach PDFs, documents, images, etc. However, we do not want ...
0
votes
0answers
13 views

Link to a page before launch

I have purchased my WordPress blog on BlueHost and it is not launched yet. I would now like to link to the About and Contact pages that I have created from the Home page. When I look at the pages' ...
0
votes
1answer
28 views

When I enter password, I'm redirected to the WordPress login form

I have a page at http://localhost/wix/dss/ when I enter, I get redirected to http://localhost/wix/wp-login.php with the error message Error: The password you entered for the username ak is incorrect....
0
votes
0answers
10 views

Is it possible to show all pages of a post that used “nextpage” tag in the same page but change URL when scroll?

I want to show all pages (E.G. default image galleries) of a post that used "nextpage" tag in the same page. For example: Page 1 <!--nextpage--> Page 2 <!--nextpage--> Page 3 ...
0
votes
0answers
27 views

How to delete the scrollbar in my pages?

Heyho! On my website, but only in Opera, I see a scrollbar on every page. It looks aweful and the scrollbar is not even necessary, because it only wants to scroll a tiny bit. What did I do wrong and ...
0
votes
0answers
8 views

How can you hide or show block depending on a variable field?

I have a question I don't know where to begin to search for. I'm trying to add a page to my website to accept art commissions. And at the top of the page, I want to add a block that shows the amount ...
0
votes
0answers
12 views

Copy a page between site in multisite network

Currently, I'm trying to add a function code to copy posts and pages between sites in my multisite network. the code looks like this: add_filter( 'bulk_actions-edit-page', '...
0
votes
1answer
30 views

Would Gutenberg be considered a PlugIn?

I believe Gutenberg is the default editor in WordPress. Would it still be considered as a plugin if it is installed in WordPress by default and no option to remove it? I assume plugins are able to be ...
0
votes
1answer
52 views

How to make a page as default page for a theme without a plugin?

I am trying to make a page to be persistent as the home page for my custom theme. In which I can download from Github and setup the Wordpress and this page appears as the default one. I created a page ...
0
votes
0answers
24 views

How to find an orphaned page

I'm having a problem with WordPress improperly dealing with slugs due to what looks like an orphaned post competing with an active page. I'll try to explain: I originally created what I thought was a ...
0
votes
1answer
10 views

Page access only from a specific page in wordpress website

I would like to know if it possible to have a page that open if and only if the visitor comes from a specific page (which in my case would be the homepage). So for example, the visitors land on the ...
1
vote
0answers
44 views

page_attributes_dropdown_pages_args filter does not work

Tried to add filter hook page_attributes_dropdown_pages_args to my website together with quick_edit_dropdown_pages_args like below to my functions.php theme file. function ...
0
votes
0answers
8 views

How to offer a non-paginated alternative version on paginated (single) posts or pages?

@ll; I'm hoping this is not a too stupid question; I tried googling for solutions and found none. Paginating longer posts sometimes makes sense to break them down into contextually coherent sections; ...
0
votes
3answers
21 views

invalid argument in foreach when trying to list custom post types in archive.php

I try to list pages of custom post type in archive.php, and I get this error message: Invalid argument supplied for foreach() $post_type = get_post_type( get_the_ID() ); $pages = get_pages(array( '...
1
vote
0answers
10 views

Weird issue with is_pages() with array

Does anybody know why this works: if ( is_page( array( 'home', 'contact' ) ) ) {} But this doesn’t: $pages = array( 'home', 'contact' ); if ( is_page( $pages ) ) {} Even when adding settype( $...

1
2 3 4 5
49