How created permalink on Wordpress with category or tag page on Wordpress
I would like to know if it's possible, with plugin : "Pages with category and tag", to use the category page with custom permalink in setting on Wordpress ?
Actualy I use the postname permalink but I would like to use custom permalink with this structure : https://example.com/category/postname.
Question 2 :
Can you confirm me that %category% does not refer to Category Base in option of permalink ?
Question 3 :
To finish, when I want to change the type of permalink (postname to custom) and save the changment with my custom structure, the permalink not run automaticly. I see on one forum a answer said it's possible we don't have possibility of changment, it's true ??
Thank you everybody by advanced for your answers.
Good day !
do you know?
how many words do you know
See also questions close to this topic
How to upload a video using ACF in WordPress?
I am still at learning phase in WordPress. I cannot figure out in ACF which field type should I choose to upload a video file and which code should I write to show it at the front-end. Please look into the below code. I am using the_field('') but it isn't working. Can anyone help
<video width="954" height="535" controls class="tm-mb-40"> <source src="video/wheat-field.mp4" type="video/mp4"> Your browser does not support the video tag. </video>
Can you add apps made from (js, nodejs, express and mongodb) in a wordpress website?
I already have a wordpress website. I studied web development using js, node.js, express and mongodb and build some projects. I would like to add it to my website. Is this possible or I just need to create a website without wordpress and add my projects?
Query to get Woo products in a parent-children order
I want to build a MySQL query for a Woo database schema to get simple/variable products, but in a specific order: I want to get them in an
ASCending order, but when a variable product is met, I want to get the variations exactly below their parent.
So for a simple product, or the parent of a variable product, the
post_typefield is set to 'product' and the
post_parentfield is set to 0. For the children of a variable product (a.k.a variations) the
post_typefield is set to 'variable_product' and the
post_parentfield is set to the
IDof the parent product.
So, imagine this desired order:
ID post_title post_type post_parent 1100 title1 product 0 1104 title2 product 0 1130 title2 - variation1 variable_product 1104 1200 title2 - variation2 variable_product 1104 1208 title2 - variation3 variable_product 1104 1107 title3 product 0 1111 title4 product 0 1205 title4 - variation1 variable_product 1111 1210 title4 - variation4 variable_product 1111 1430 title4 - variation3 variable_product 1111 1432 title4 - variation2 variable_product 1111
So by the above table you see that I want products to be sorted by their ID, until the variation(s) of a product are met, which I want to be placed under their parent, and get sorted themselves by their ID also. So I don't care about titles not being sorted alphabetically (title4-variation4 is sorted above title4 - variation3 because the variations' IDs are sorted in an ascending order).
So I tried to play a little with
ORDER BY ID ASC, post_parent ASCand also
ORDER BY ID ASC, post_type ASCbecause product is sorted alphabetically above variation_product, but I couldn't get them sorted correctly. I always end up with parent products being sorted higher than variations, just because their IDs are smaller.
SELECT * FROM wp6c_posts WHERE post_type IN ('product', 'product_variation') ORDER BY ID ASC, post_parent ASC;
Obviously I have to query table wp6c_posts twice, once for the simple/parent products, and then for the variations of the variable products, but I can't think of the correct query.
Can someone help me with this?
I want to show the related categories section on the post page dynamically. Can anybody help me with this?
I have a quote website and it has many categories almost 50 with parent child relationship like. enter image description here
What i want is when i open love quote page .. on side bar it will show related categories list to love quotes (child categories i.e boyfriend wishes, cute love quote ). and when i go to any child category page (i.e boyfriend quote) it will show all child categories under that parent one. and so on with all other categories... .
Shortly, i want same scenario as related posts works but i want it with categories list.
I don't know how to do it. there must be a dynamic code that I should put in sidebar right ?
Please help me to do it.
Should I transform numerical variables to categorical variables in GLM?
I'm building a GLM with couple of variables and I have a problem with how to organize my data. I have both numerical and categorical data and I'm struggling as to how should I structure 3 variables.
I build a model to see if a toxin in fish is influenced by environmental and biological data. All biological variables such as sex, growth, condition etc. are measured per sample. However, I want to include in the model environmental variables that have the same values for all individuals (samples) in each population. Here I give an example:
Lake toxin V1 V2 V3 V7 PC1 PC2 PC3 Lake1 6.642662 -24.40677 8.175274 6.626065 2 -4.391045706 -0.709131522 1.115037248 Lake1 6.237877 -23.35143 7.214446 7.598336 2 -4.391045706 -0.709131522 1.115037248 Lake2 7.131938 -25.206 9.587 4.296624 1 -3.052061784 -0.634795567 0.615332691 Lake2 7.106172 -24.677 9.998 6.047108 2 -3.052061784 -0.634795567 0.615332691 Lake2 7.634661 -25.758 10.095 8.383605 1 -3.052061784 -0.634795567 0.615332691 Lake3 8.066581 -26.906 10.433 3.988736 2 -3.104092579 0.303914076 0.271016783 Lake4 6.217926 -29.099 6.499 5.39643 2 -2.723297999 -0.068871926 -1.89359307
The table presents 7 samples from 4 lakes. I want to test if the toxin can be influenced by all factors included in the table (from column V1 to column PC3). Variables V1, V2 and V3 are numerical (i.e. growth, condition). Variable V7 (i.e. sex) is categorical. All 4 biological factors are unique to each sample. Now, I have PCA values that describe environmental variables. PC1 describes climatic gradient, PC2 - catchment properties and PC3 - lake characteristics. These variables are unique per lake, so the values repeat for all samples in each population (lake). The numbers themselves don't matter, what's important is the distance between numbers, that describes i.e. how much warmer and more productive is Lake1 from Lake2 on a scale of all lakes.
The question is, can I use PC1, PC2 and PC3
as.numeric()in the GLM model? Even though the variables are not continuous, but rather have class / are grouped? Or should I use PC1, PC2 and PC3
as.factor()? If I use all PCA as a factor then the order is important because the lowest value of PC1 is in Lake1, but the lowest PC2 value has Lake4.
Or perhaps both are wrong and there is a different approach? I'd appreciate any help.
How do I exclude archive directories from a rewrite rule OR rewrite the archive path to include a custom category?
I am struggling with a solution to my problem with a recent wordpress site transition. My old wordpress site had /blog/%category%/%postname%/ as the permalink. With the new site we have changes that to: /news/%category%/%postname%/
I then made a Rewrite Rule to redirect all existing blog posts: RewriteRule ^blog/(.*) /news/executive-insights/$1 [R=301,L]
However, I didn't realize at the time that this also broke all archive URL paths.
https://www.example.com/blog/2022/04/29/ now redirects to a 404 page of: https://www.example.com/news/executive-insights/2022/04/29/
1.) I either need a fancy way to exclude archive directory(2022,2021,2020, etc.) from the rewrite rule. 2.) Or I need a way to include /executive-insights/ as part of the archive URL path instead of: https://www.example.com/news/2022/04/29/
PS- Please don't tell me to update my custom permalink to include year/month/day that is not a solution.
Moved wordpress site to new physical server (same hostname and IP) none of the navigation links work now
After migrating a wordpress installation to a new physical server, none of the navigation links work.
No changes were made to domain or IP. DNS not affected.
If I change
Permalinksto Plain style:
All navigation works exactly as expected.
Permalinksare changed to any option other than Plain, clicking any of our navigation headings results in 404s.
EDIT, this appears in error log:
[Mon May 02 08:28:26.441200 2022] [autoindex:error] [pid 65112:tid 140589194516224] [client x.x.x.x:50240] AH01276: Cannot serve directory /data/www/virtualhosts/example.com/public_html/wp-content/uploads/asp_upload/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
What am I missing here?