The urls tag has no wiki summary.
4
votes
3answers
1k views
Add .html (dot HTML) extension to custom post types
Is there any way to add the .html extension to custom post types without plugin ?
For posts I can use /%postname.html on the permalink settings
For pages I can use:
add_action('init', ...
4
votes
1answer
166 views
Which method is best to enqueue scripts
I'm currently authoring the development of a plugin for wordpress, and I'm having trouble figuring out which would be the best way to add scripts to the plugin. I'm in the process of adding more ...
-1
votes
1answer
80 views
Change URLs depending on alias [closed]
I have two domain names: themaindomain.com and thealias.com.
Wordpress is located under themaindomain.com.
I was wondering if it is possible to change the urls to posts and pages when there is a ...
1
vote
0answers
153 views
Using custom taxonomies to display hierarchical URLs?
I can't seem to get my custom taxonomy hierarchy working properly. It seems like many other have had this problem but none of their fixes work for me.
I would like to have a URL structure similar to ...
0
votes
1answer
80 views
Extracting a variable from a permalink
I used the "Edit Author Slug" plugin to change the author base to /newbase .
In the functions.php file, I added a new node to the toolbar (View Profile) that when clicked points to ../newbase/johndoe ...
0
votes
1answer
61 views
Accidentally Changed Wordpress Url
So I have two different wordpress applications located at
test/wordpress1
test/wordpress2
I wanted to switch between them under the same domain (localhost) so while on the wordpress1 application, I ...
0
votes
3answers
122 views
Why is my Wordpress install using full server directory paths for media URLs?
So I have this Wordpress blog at ilovetheupperwestside.com. It uses the Aggregate Theme from Elegant Themes.
I moved it from a temporary location to the current URL.
This action broke some things, ...
0
votes
1answer
93 views
How to detect for a fragment identifier in a URL? [closed]
For those who don't know, an example of a fragment identifier commonly used in a WordPress context is a link to a particular comment - wordpress/?p=34#comment-11.
The theme I am developing hides ...
1
vote
0answers
65 views
How to direct to any page [duplicate]
How to direct to login page and go to destination page?
for example: if user click any URL who that user not yet login, direct to login page.
After, sign in, user continue directly to page that user ...
2
votes
3answers
463 views
Force home page to be https?
I have a SSL certificate and https plugin which both work fine along with changing the Settings in the Wordpress menu to https but I have to manually enter 'https' to see the Secure version, is there ...
1
vote
1answer
353 views
Request parameters in $_GET do not match URL called
I have a WP plugin which uses the request parameter "type" to determine what code-file to load in order to do some processing. The code which handles this is as follows:
add_shortcode ...
2
votes
1answer
233 views
Custom plugin route in Wordpress
Okay so my question is quite simple. I need to implement some custom routing rules for my plugin. Those routes would only take one argument (so nothing complicated) and would look like : ...
1
vote
0answers
55 views
ngnix Url rewrite doesn't work
on my server i have installed magento,which is in my root directory. then I created a sub-folder named blog in my site's server. access the blog url is:
http://example.com/blog ...
1
vote
0answers
32 views
menu using category and tags
I'd like to do (somehow) manual menus that would display all posts within certain category.
Eg, I'd have sections "applications" and "games" so now i can do this:
...
1
vote
1answer
366 views
Why id in urls doesn't work and slug yes?
I'm lost, I don't understand why this works
http://website.com/?tag=my-cat-slug
and not this
http://website.com/?tag=15
It's really annoying because wp_dropdown_categories() only provides ids as ...
1
vote
2answers
642 views
WordPress 3.4 Permalinks Redirection Problem
A few years ago this was the permalink structure I had for my blog:
/%year%/%category%/%postname%.html
I changed these permalinks last year to this:
/%category%/%postname%/%post_id%/
A plugin ...
1
vote
2answers
262 views
Get closest page ID from URL
Lets say on my WordPress website I navigate to:
www.example.com/media-centre/news/17/an-example-news-post
In this case I am looking at a post in a CPT called News.
What I want to do is get the ...
0
votes
1answer
163 views
Tags and Taxonomy links not working for Custom Post Types
In my theme, I registered a taxonomy by the name of tax_groups for a custom post type named custom_items.
So the following URL was returning the lastest custom_items
...
1
vote
1answer
56 views
How to obtain the link/URL to the feed of a custom taxonomy?
What I need to accomplish is to provide a feed link for every item in a custom taxonomy. The function get_category_feed_link only works for categories, and I don't see that tags support this either.
...
0
votes
2answers
397 views
hijacking home_url for root relative paths
I'd been having trouble with the full domain name being written into the path of links and assets. Basically localhost:XXXX works fine, until I try to reach my site from a Virtual Box install of XP or ...
0
votes
1answer
328 views
Custom Post Types, URL rewrite on multiple CPTs
Re: Custom post types, taxonomies, and permalinks
by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
2answers
252 views
custom wordpress rewrite
I am trying custom rewrite for following url...
http://www.domain.com/lp/1
and it would be parsed using
lp.php?p=1
I have tried following...
add_action( 'init', 'aagt_rewrite_add_rewrites' );
...
0
votes
1answer
295 views
Is there an URL listing latest posts
Currently my homepage is showing my lastest posts but I want to replace it with a page.
I wish that all the posts could still be seen in a widget and by clicking on "news" in the menu.
I already do ...
1
vote
1answer
194 views
Wordpress custom search url
I'm trying to chang my custom search url for SEO purpose. I found an article about how to change mydomain.com/?s=query to mydomain.com/search/query. However, i prefer to have a custom search url such ...
0
votes
1answer
52 views
How can I get rid of the the category suffix--NOT “prefix” (i.e. foo-1, foo-2, etc)
I just added a new category to my WordPress site, but the WP is adding a "-2" to the url as if there was an existing category with the same name. But there isn't. There was, but I deleted it. How can ...
16
votes
6answers
2k views
Detecting a WordPress URL without doing a full HTTP GET?
I'm trying to write a oneboxing routine that gives WordPress blog entries special treatment. So given a simple, unadorned URL in content, such as
...
0
votes
1answer
71 views
Change URL to filter posts
I am trying to understand how I can filter posts on a page simply by changing the URL.
I tried adding this just as a test - http://mydomain.com/find-work/?orderby=title&order=ASC which does not ...
0
votes
1answer
35 views
Creating additional page with own URL for each custom post
I have a specific issue here. I have website using custom post types, and I need to create a specific functionality for these custom post types. From each custom post type the user should be able to ...
0
votes
1answer
73 views
Typing local Wordpress URL works, but clicking the same link does not
Wordpress is installed locally on WAMP (win 7 x64) and the front page of my site loads fine when I type http://lc.loc. However when I click the link to this URL on the loaded page, I am taken to a DNS ...
0
votes
2answers
360 views
Get current Wordpress page then add #post ID to the end
I'm trying to find out the PHP code that will get the current URL and add a hash ID onto the end of it so a link can be generated and linked to.
The end goal is to create a link that returns: ...
0
votes
2answers
967 views
Images in sub-pages fail to load
I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids.
The content of the .htaccess is this:
<IfModule mod_rewrite.c>
RewriteEngine On
...
0
votes
1answer
94 views
How can i maintain permalink structure and avoid a 404 error when loading external content?
I created a page called Catalog and also a template called page-catalog.php. The url looks like this now:
sitename.com/catalog
So far so good, however i use some custom php stuff to list products ...
4
votes
2answers
147 views
Allow admin login at /admin
I am interested in:
how can we change the default login url /wp-admin to /login
how can we add another url for login so that both /wp-admin and /login would work
I tried to use a custom filter and ...
0
votes
1answer
290 views
How do I get the author's page url from their ID?
What is the best way to get the author's page url, so http://example.com/author/user73, from their ID number?
3
votes
1answer
199 views
Limiting the number of words or characters in the slug/permalink
Limiting the number of words or characters in Wordpress slug/permalink. I would like to limit the number to the first 5 words (or 20 characters) even if the post title is longer.
example:
Title: ...
0
votes
1answer
127 views
page url in shortcode
I have a problem.
I'm using a custom shortcode to try to get the url. If the shortcode is inside a post then it gets the post url. When I open the post on a category list, this post shortcode works ...
0
votes
3answers
236 views
Wrong url in sortable column headers & pagination in the admin, when behind a proxy
Recently I changed the url of my site from atlas.site.com to site.com, one thing I just came across in the admin area for posts, custom post types, pages, where there are more than one page of posts, ...
0
votes
1answer
42 views
Hook for feed creation?
I'm looking to create a function which would be called when the blog's /feed/?args... URL is requested. I've been looking at the_content_feed, would that be correct?
Also, how would I get the args in ...
0
votes
1answer
140 views
Bizarre Permalinks Issue: 404 Errors Everywhere
First and foremost, this is definitely a duplicate of the age old question of "my Wordpress permalinks are generating 404 errors", but in a way it's different because no solutions I've tried have ...
0
votes
1answer
35 views
Make custom system url
Let's say my site is example.com
I want to create example.com/portfolio without creating a page.
I just want to execute some PHP code and display a bit of HTML.
Is there any way to create "sytem ...
0
votes
2answers
53 views
After changing the site root, how to reflect this for wp-admin too?
My website file structure is like this:
index.php
wp/wp files ...
In general in Site Address (URL) I have ...site.com
In index.php I have:
define('WP_USE_THEMES', true);
...
0
votes
1answer
108 views
How to get the theme directory URI?
I want to get the theme root URL with PHP. What would be the best way to do that?
There is a function called get_theme_root() which gives me the path but not the URL.
Maybe just get the current ...
1
vote
1answer
505 views
Change website URL without breaking links or images? WP 3.3
I am using Wordpress 3.3.2.
Currently I am working on a website in a dev folder on my domain, dev.domain.com. Upon creating pages and blog posts, it just occurred to me that when I move the WP ...
3
votes
1answer
285 views
Preview Image Path in Admin Section
So I have run into a little glitch. i have a custom path for uploads and it works. the files get saved to the right place, etc. The problem I have is the 'widget box' in the admin section. immediately ...
0
votes
5answers
1k views
A way to change image urls in post to cdn image url?
due to some reason my hosting company isn't able to fix if i use w3 total cache or w3 super cache for caching my site's sql usage keeps on peaking.... and on high spikes servers gets laggy and down ...
0
votes
1answer
429 views
Problem with parent page slug only in WordPress admin
I am using the permalink structure:
/%category%/%postname%/ in order to show my blog posts under their category in my url.
I have also installed WordPress SEO by yoast (if that helps) but I noticed ...
0
votes
1answer
148 views
URL Forwarding - wordpress links reverting back
Say I built a site at test.example.com, and I now have it set up so that when you arrive at example.com you really see test.example.com, my problem is all the internal links created by wordpress want ...
0
votes
3answers
186 views
Can Permalink structure of %postname%/%post_id% improve performance
Since the post_id is unique and no full text search is needed.
So is the structure %postname%/%post_id% really improve performance?
0
votes
1answer
167 views
Rewrite /category/cars into /topics/cars
I know there are plenty of question and posts about this out there, however I couldn't find a solution or existing thread to my specific question.
If I list my categories and click on "cars" the url ...
0
votes
2answers
737 views
Using a portfolio_category slug in wordpress URL
I won't lie - I don't know php but I enjoy digging around trying to find ways to customize themes so that they behave how I want them to. Any help would be very much appreciated.
What I am trying to ...
