Is there a way one can create custom permalinks in Wordpress?
For instance I am trying to create the following url:
website.com/our-services/douchebag-removal
but when I create the page douchebag removal I can not add the / to the permalink so it can look like this our-services/douchebag-removal.
This is what I get:
website.com/our-servicesdouchebag-removal
Please share your thoughts!
This is a simple one that gets me every time, on the our-douchebag-removal page you need to chose the parent page "Our Services" in order for the url path to reflect that.
Another solution, easier to use and not needing you to create parent pages: https://wordpress.org/plugins/custom-permalinks/ It's basically a plugin that allows you to put any url on a wordpress page/post. Let me know if it helped!
Related
When creating standard pages we can use single or archive page templates or simply create our own page template creating a new page with the slug for example: photography and actual page: page-photography.php so we can write unique content to each page if we need to.
How can we do the same with custom post types?
So, I have a custom post type called services how can I create custom unique pages for each of my services?
I know I can write the content directly to each service page and pull it from there but this is not what I want. I would like to have full control over each service page.
Can anyone share the proper solution how to handle this, please?
I think, you can create a file with name single-{post-type}-{slug}.php
see more here, Single Post Template Hierarchy
I've a Wordpress site page (5.7 version) called Ranking with all athletes showed (url = "https://example.com/ranking").
For every athletes showed I create a button link for display all athlete details.
What I would like is that by clicking button (for example athleteId=2352), the page to open will be = "https://example.com/athlete/2352.
How can I create athlete page?
Do I change only permalink?
Do I Have to rewrite my theme rules?
Thanks
Look into creating a custom post type for the purpose. You should then have control of rewrite rules, archive slug etc.
https://developer.wordpress.org/reference/functions/register_post_type/
And as ed2 mentions, please be more clear in your questions. It makes it easier to help out, and more useful for others with the same issue as yourself
I'm trying to make a custom page on a Wordpress site.
It is more or less linked to the Wordpress itself. The code is custom but I have used links to it from Wordpress Dashboard and normal pages.
The point is that now my boss wants to create a page like example.com/me/name and that should SELECT some data about the person.
Example: site.com/me/johnx
This should run something like SELECT FROM DB WHERE first_name LIKE 'john' AND last_name LIKE '%x' let's say.
How can I create my folder / file / function "me" so that when I type "/name" I can do an explode under it and use the last parameter to show the page?
Thank you!
Edit: I know about GET method.
As in example.com/me?name=johnx
But I want to know how to do it with simple slashes "/".
I think you should add a rewrite rule, which is a function called to tell Wordpress how to handle the URL's. You can find further info here.
add_rewrite_rule() allows you to specify additional rewrite rules for WordPress. It is most commonly used in conjunction with add_rewrite_tag() (which allows WordPress to recognize custom post/get variables).
i am not that much export in Joomla. and i stuck at one problem.
i want to add some custome fields in article manager page when we add / edit article from admin side. just like wordpress when i add some function in function.php page it reflacts on wp-admin side.
also i want that selection to be effect on front side.
can some one show me is there any way i can add a function in my theme which will show a custome selection fields on admin side and based on that front page changes.
i am using Joomla 3.4
Thanks in advance
You need to write a plugin to add this functionality. There is a recipe here. In the example they are using the #__user_profiles - table, which might be okay, but adding your own table might be more flexible.
This here might also be a useful link.
I want to create a custom post type in Wordpress for a course section on a site. I want to be able to add a course and then within that course add lessons. I know how to create basic custom posts but haven't been able to figure out a post within a post. Is this even possible?
The url structure would look something like this:
www.mysite.com/courses/awesome-course/lesson-1/
This is the sort of thing I'm looking for but want to build it myself: http://www.woothemes.com/products/sensei/
Any suggestions would be greatly appreciated,
Thanks
Install the Custom post types plugin by iLocalize http://wordpress.org/plugins/types/. They have a lot of tutorials on how to add the custom posts to a page. This tutorial http://youtu.be/1SXyHbgjYaI here is the best I've found but there are more the wp-types website.