How are they?
I have a problem with my own plugin. I have created a custom plugin with custom permalinks, but it don't work and I don't know why.
The url is:
web.com/index.php?pagename=tus-stars&ficha=first-second
I want to show url like this:
web.com/tus-stars/first-second
In other places of Wordpress the permalinks works perfectly, but when I try to do run in this page I have a lot of problems..
This is the code that I use for generate a custom permalink in this page:
http://pastebin.com/ghE7iBkh
What problem I have ?
One thing more. The "first" and "second" parameters only are a text string with one dash between both, not a number or other type.
I hope they can understand me :) My english is very bad !!
Thanks for all !!
Try setting your permalink structure to %pagename%/%ficha%.
Related
Can you help me with one issue? I want to understand how I can make WordPress URL like this structure. Examples:
http://sitename/category-1/subcat/article1
http://sitename/category-2/subcat/article2
http://sitename/category-3/subcat/article3
Searched all google but nothing found :(
General conditions is don't use any plugins or modify functions.php, only admin manipulations. Can anyone explain me how I can do this?
Thanks!
you can do it simply by adding the custom permalink as /%category%/%postname%/
Source: https://www.wpbeginner.com/wp-tutorials/how-to-include-category-and-subcategory-in-wordpress-urls/
I have a wordpress page and when i try to add query string to my page. Ex:
my-page/list-companies?page=2
Wordpress will redirect me to:
my-page/list-companies/2
I dont know the problem is in my code or wordpress settings, can anyone help me with that because i tried google but still no results.
Any help would be greatly appreciated.
Edit:
The problem was the parameter ?page=2, which may cause wordpress missunderstanding (i guess), the solution is change the permalink to Plain or change parameter to something else: ?current_page=2. Thank you for supporting me !
Check permalinks under settings tab in administration and set how URL should look
Goto Settings - Permalinks
And select Post-name (most popular)
I have looked all over the place and can't figure out how to get this to work.
I want my urls for blog posts to look like this: "www.website.com/my-page/category-name/blog-post-title"
The issue I am having is that I have a page called "my-page".
So I have a page "www.website.com/my-page/" which is just a standard wordpress page, but I want the url for the blog post to look like it is under that page.
Here is what I have for the permalink so far:
/my-page/%category%/%postname%/
But this doesn't work and gets a 404 error when opening a blog post.
At this point I don't believe it can be fixed through the wordpress gui, so if anyone has any recommendations, it would be appreciated.
Thanks!
Edit: I wanted to add that the permalink works fine if I remove "/my-page" or if I simply modify it so it does not match the page.
First of all you should not use the category in front of your permalinks as it leads to bad performance (and some posts may have multiple categories): http://ottopress.com/2010/category-in-permalinks-considered-harmful/
The second thing is - it should work. I tried with a fresh installation on WordPress and I get the correct results.
Did you flush rewrite rules / save the new permalink structure?
Did you publish a post?
Is your server correctly configured to use permalinks?
Third possibility - if your permalink structure does not work for some reason you can define a custom permalink structure:
https://codex.wordpress.org/Rewrite_API
I have a WordPress blog. All the post are currently in this convention:
http://www.myblog.com/blog/?p=1442
Now I'd like to change the URL of all posts like this one:
http://www.gomidjets.com/blog/this-is-my-post
While it's quite easy to apply it by changing the blog settings, the big problem is about the links I've placed
in many external website. I can't change them, and I'd like to map the old links to the new links somehow.
Do you know how to do it - if that's possible at all?
Do you have a better solution?
Thank you very much
Wordpress will map all old URL to new one, in case if you provided all URL in their original shape, such as http://example.com/?page_id=80
The answer is: you don't need to do anything.
I believe what you're looking for can be found in the admin panel.
In the admin panel (http://www.your-wordpress-site.com/wp-admin), go to Settings > Permalinks
Login to the admin panel first,
go for the settings->Permalink Settings
Select the format you want.
If you want change the base url for only some posts then you can edit from database.
Try this Redirection wordpress plugin to redirect your old url to your new url.
The URL's should resolve fine because the original URL you're using is the permalink one to my knowledge. If you're wanting end users to be redirected to this url, that's a bit harder.
That aside, I couldn't find any plugins that already did this. What you want to do is check the current URL against the wordpress function get_permalink() and if it doesn't match, redirect to the current permalink URL.
i using wordpress 3.1.3 to develop custom theme.
it seems my theme has strange behavior.
in the post from WP admin i add <!--more--> tag to cut the content, and display read more link. and now i want to change the read more text, which the default text is Continue reading “PAGETITLE” »
i put this code in the loop of my index.php theme.
the_content('a');
this didn't change the Continue reading “PAGETITLE” », then i try this
the_content('');
it cleaned the text (which mean for me the code is work). but what im trying to achieve is change that text to READ MORE. and this not success.
i think this maybe because of the plugin, but i already try deactive all of the plugin, and still didn't work.
How this can be happen?
I put the code of my index.php here http://ideone.com/ya4Sr
can you please help me, maybe there is something wrong with my looping.
Thank you in advance,
GusDe
There is some plugin change my readmore text, and i thing this question not relevant anymore.