I have a question. I would like to get an url like this : http://www.xyz.com/people/steffi
Does anyone have an idea ?
And finally, I would like to range people's name like this : A B ..... Z
Thanks in advance.
you can adjust that in the permalinks settings.
try %category%/%post_name%
look here for more in depth info. http://codex.wordpress.org/Using_Permalinks
I'm pretty sure it's a custom content (or post) type. A good plugin to control custom post types is CMS Press. You could set up a custom post type of people, and then have categories for each letter of the alphabet. When you put in new posts, just add them to the specific category (letter) that you want.
Related
Guys, there's some hook, hack or something that I add on functions that make a taxonomy or category is selected at the time of posting? Already come with chckbox marked to be..
Does anyone know?
you can have a look on this https://codex.wordpress.org/Function_Reference/wp_category_checklist
this allow to make categories checked by default. I think this is what you are looking for.
Using the advancedcustomfields.com plugin:
1)I want to post to the ACF and use a category just like a regular blog post, but the URL would be: mysite.com/customPost/category/post-name
Is this possible? And how can I do it?
2)Could I add a custom page template to each category page?
Thanks!
1) I dont understand where ACF gets in the picture, for categories and terms you should use custom taxonomies instead of ACF. Here is a link on how to do that.
2) Yes. The wowrdpress hierarchy lets you do exactly that. lets say you have taxonomy books, and you want to have different templates for fantasy and romance you can do it like this
taxonomy-books-romance.php
taxonomy-books-fantasy.php
Its whats called taxonomy-$taxonomy-$term.php in the hierarchy.
Is it possible to have the same permalink structure for pages, a custom post type and a custom taxonomy. The desired permalink for them all is http://sitename.com/{slug}
How can I achieve that?
You can use plugin custom permalink. By using this plugin you can set url as u want.
http://wordpress.org/plugins/custom-permalinks/
Short answer: Yes and No. You can code something up yourself, create some fancy .htaccess rules or use a combination of plugins.
See this post, despite its name, someone does suggest a plugin - I've used the plugin they talk about (wp-no-category-base), it does the job. Be aware that you could be asking for trouble doing this (for instance if you try to label a particular post with the same name as the category/custom taxonomy/etc - read the accepted answer here: https://wordpress.stackexchange.com/questions/42120/remove-slug-in-taxonomy-url):
Remove category & tag base from WordPress url - without a plugin
I'm fairly sure it handles custom post types - can't remember. If not, check out this:
https://github.com/markoheijnen/wp-no-taxonomy-base
Note: this code has not been updated in a long time.
I am wondering if it is possible to create a bespoke permalink structure which is based off some of the custom fields I have in my post.
The custom post fields are: film_director, film_name (these will be consitent through out the website)
So the structure I would like to create is as follows:
http://domain.com/%film_director%/%film_name%/%postname%
I'm not great with Wordpress specific terminology so I might just be looking with the wrong keywords however is this something that can be completed (with use of either a plugin or custom code)
Thanks :)
Yep you can do this : here is a nice tutorial about it : http://firecask.com/custom-fields-and-posts-in-wordpress-permalink-urls/
I also find a plugin which seems to do this, but it's quite an old one. http://wordpress.org/plugins/custom-fields-permalink/
i have a custom field in wordpress named cuisine
its a dropdown with the values of:
-asian
-african
-mexican
-american
-etc etc
whenever i add a post i can choose what type of cuisine it is.
now i have a custom page where all cuisine type should be there.
i want it dynamic which means it get its value from the custom field values
therefore i should be having this
-asian
-african
-mexican
-american
-etc etc
as my page contents.
problem:
how can i get this advance custom fields field? i mean the select field itself named cuisine
tried googling but always got different answer
*note: i am using 'Advanced Custom Fields 4.1.5.1' and 'WordPress v3.5.2'
thanks anyway.. solved it already
get_field_object($field_key);
is the answer.
hope it helps someone who will encounter this kind of question in the near future