We’re rewarding the question askers & reputations are being recalculated! Read more.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
12 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
0answers
17 views

Cannot Create New Pages + permalinks stopped working (Windows Server)

I have WordPress running on a windows server. The installation has been working correctly for about a month, but a few days ago I noticed that I could not follow permalinks to pages on my site anymore ...
0
votes
2answers
16 views

How to stop a permalink redirecting to a page whit same slug but different permalink

I have this CPT that has this permalink http://example.com/area-cliente/colecciones/basicos/ and this other page http://example.com/basicos/ And going to http://example.com/area-cliente/...
1
vote
0answers
27 views

Assign same parrent Page to pages AND custom post types

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom post types of type job_position are being displayed. For some specific reasons I need to ...
0
votes
0answers
21 views

Product Permalink Blank Page

I've been building my website on the wordpress online platform. It was fine for some time until now i notice i couldn't view my product after clicking into the product itself. It shows my web header ...
0
votes
0answers
14 views

Correct approach to build dynamic links between translated pages

I have a simple website, www.recconsulting-services.com and I have the pages translated both in Italian and English. As you can see on top of the screen (header.php) I set two anchor flags images. If ...
0
votes
0answers
33 views

Is it possible to change the permalink structure of “pages” to something like `/page/$page_id%`?

The permalink setting in WP admin seems to only affect the "post" type, not the "page" type. The "page" will use the title as the url no matter what is set in the permalink setting. I've searched and ...
0
votes
1answer
28 views

Redirect From Url To Url

I want to redirect the same directory, but different url structure. The url structure I use: http:example.com/car/cadillac/image/2 I want to direct http: example.com/car/cadillac/image/ url. Because ...
2
votes
1answer
52 views

How to change the permalink structure of a master page?

Links on the page I use are progressing as follows: http://example.com/image/1 The code I use for Functions.php add_action( 'init', 'wpse316713_pagination_base_rewrite_rule' ); function ...
0
votes
2answers
28 views

Can I link to content dynamically from a page to a new page?

I am new to Wordpress dev, and I have a page that loops through some custom fields(repeater) of people. I'd like each subfield link to go to another page that has more info from that person on the ...
0
votes
0answers
73 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
0answers
416 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 ...
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 ...
2
votes
1answer
971 views

Duplicate Category and Page URL loads Category instead of the Page

I have created a Category with the slug service, which has the permalink: https://example.com/service. and a Page with the link: https://example.com/service. In the Category service, there is a post ...
1
vote
0answers
25 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...
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-...
5
votes
1answer
942 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
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
388 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
1answer
315 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 ...
0
votes
1answer
118 views

Page returns 404 for specific permalink

Had a page called locations at mysite.com/locations/. Renamed it to /locations-old/ and created a new page also at /locations/. Ran into redirect issues and permanently deleted /locations-old/. ...
0
votes
1answer
345 views

How can I add a page's ID to its permalink using WP_Rewrite?

I have a client who is adamant that the permalink structure for pages must be along the lines of postname/postid, such as test-page/7. I've gotten as far as adding the post name using $wp_rewrite->...
0
votes
1answer
160 views

Edit permalink for certain pages

I'm creating a website based on an old and positioned one. I've created all the sections and I need to know how can I add "/services/" as a prefix for some pages... I mean, not all pages are ...
1
vote
0answers
362 views

get_permalink returning site home url instead of the url of slug being passed

I am fetching some testimonials data from db and based on the slugs, I am getting the links to use further. Here is my code function createPageForTestimonials($slug, $title, $content, $companyName){ ...
1
vote
0answers
289 views

Get the url of a page template without using the page slug and ID

Can I get the url of the page "page-template-contactus.php" using "template-contactus" only?
0
votes
1answer
74 views

How are WordPress Page URLs affected by permalink settings?

I am finding tons of tutorials about the why and how of modifying permalink structure for posts, but absolutely nothing about pages. Right now, my permalink settings are "plain", which uses a query ...
0
votes
1answer
48 views

How to use page jumps to top of banner and page title?

I've tried using page jumps as instructed by countless websites to "jump to the top of my page": Source code followed by destination code: <a href="top_page">LINK TEXT HERE</a> <a id=...
0
votes
1answer
181 views

Permalink base only for posts

I am looking for special permalink mod, is this possible: For posts to be like this: www.example.com/blog/nameofthepost For pages to be like this: www.example.com/nameofthepage Is this possible? ...
3
votes
2answers
2k views

How to Remove Slug From Database?

For example: mydomain.com/embed automatically redirecting to homepage although I haven't set redirection. I want to add a page in my website name embed and for this page URL automatically becoming ...
0
votes
1answer
157 views

How to give priority to page than to posts permalink structure?

I have a site where I have the following permalink structure: /blog/%category%/%postname%/ This has been set in the Settings -> Permalink Settings. I also have a page named /blog/. This page gives ...
1
vote
0answers
47 views

Remove -2 from URL; no duplicate pages, no images, no pages in trash

I've been working or a client and she's getting a -2 in a URL. URL: www.id4africa.com/2017-2. We originally thought that it was because she had named another page with that slug and then changed it. ...
1
vote
1answer
161 views

Switch to page template when using post permalink

I'm new to wordpress development so hopefully I'm asking this right. The company I work for recently bought a custom wordpress site from an agency, but before we were able to launch it, the agency ...
0
votes
1answer
49 views

Change all pages permalinks instead of hierarchical to have id of the page

I would like to change the permalinks of all the pages of my site to have instead of http://example.com/page1/page2/page3 http://example.com/152 where 152 is the id of the page. Could i use ...
1
vote
0answers
37 views

Multiple URL's based on category for one post

I have a rather odd question, I think. I have some post. This post (not all of them) will get a category, when I give this category to it in the admin area. But... while I am using the same post, I ...
6
votes
1answer
5k views

Disable Attachment Pages Completely

I would like to disable all attachment pages completely. I Googled it, but there's just information on how to redirect to parent post or homepage. That's not what I would call an elegant solution. Why ...
0
votes
1answer
88 views

Precedence of page permalinks over woocommerce product category links?

I have a situation I cannot quite understand, and wonder if someone could help me do so. We are developing an e-commerce store (WP + Woocommerce) Individual artists are represented by Pages (each ...
0
votes
1answer
841 views

“-2” Being added to end of URL (no duplicate pages, no pages in trash)

I have a page called "Orlando" and for some reason the page url is /orlando-2/. I have never made another "Orlando" page on this site and there are no pages living in the trash. There is also no other ...
0
votes
1answer
861 views

add_rewrite_rule with bottom priority doesn't handle the Wordpress pages

I have a php file named test.php that outputs the page querystring parameter. I want to use add_rewrite_rule to serve my php file, while the WordPress pages which exist already or will be created ...
0
votes
1answer
382 views

The permalink for the page doesn't work and page's defined link throws “Object not found!”

I created new page in a fresh WordPress install. Version of WordPress is fairly new - 4.4.2. I set the permalink for the new page to be http://localhost/gp/page-two/‎.
1
vote
1answer
36 views

category permalinks

i am quite confused about the permalink stuff. So here is whats up... I have a page called tours as well as custom post type called mc_tours. At first i just changed page permalink to mydomain/...
0
votes
2answers
30 views

Create page as a file in my theme?

Is it possible to create a single page by just adding a php file inside my theme and add header and footer to it? Yes, I know, this page will not be able to administrate through WP Admin. I have ...
0
votes
1answer
60 views

Page permalink ending in “-2”

I have a couple of child pages that keeping ending in "-2" on the permalink even if I go in and manually change the permalink. I do not have any pages that are a duplicate title of these so I have no ...
0
votes
2answers
754 views

Unabled to Change Permalinks - Even Using the “Edit” (Resets to Original Permalink on “Update”)

I have tried everything in every post I have been able to find about changing permalinks for existing posts and pages. I have gone to settings and change the permalink structure in hopes that it would ...
1
vote
2answers
821 views

How to handle broken links created by permalink/slug changes?

If I create a page with the slug "exams" and then need to change the page's slug from "exams" to "tests", any other pages in WordPress that link to the original permalink now have broken links as ...
0
votes
1answer
1k views

cannot link a external url, present page url acting as parent url

please help some one cannot link a external link, my present page link is acting as parent link, if iam linking facebook.com , then my page url opens as www.mysite.com/facebook.com please solve it. ...
0
votes
1answer
58 views

Get a link to paged(<!--nextpage-->) part?

I want to get a link (like get_permalink($id) ) to it's specific page of a post (created by <!--nexpage--> tag).. how to achieve this?
1
vote
0answers
23 views

Host frontpage via example.com and everything else via example.com/blog

I've assigned a page as frontpage which will be available via example.com. All the other pages should be below the /blog. For example: Main-page: example.com All posts: example.com/blog Single Blog ...
1
vote
1answer
15k views

How to get a page url by a page id?

I tried to use get_page_link('page-id') and get_permalink('page-id') but the error below occurred. Fatal error: Call to a member function get_page_permastruct() on null in ... How can I get a page ...
0
votes
1answer
59 views

Change the permalinks structure

I have decided my structure of permalinks from /?p=125 to /sample-page. I have tried some methods, but anyone works. I have changed the structure in settings/permalinks and I have tried with some ...
0
votes
1answer
12k views

Wordpress Page Not Found if Permalink Settings is Postname

Uploaded code on staging server. in localhost everything is working well but on staging I can login to admin pabel but can not see any page on frontend. When any page is accessed it says The requested ...