A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource.

learn more… | top users | synonyms (1)

0
votes
1answer
203 views

How do I include an external PHP file in a subdir Wordpress install?

I originally posted this on SO, but was directed this way. I have a Wordpress installation in directory /blog. I am trying to include multiple PHP files located in the root parent directory using ...
0
votes
1answer
27 views

Need to check if user is on a particular page

Here I hope is a simple question for a php newbie. I have a textbox on my blog's home page that contains a link to another page. Should the visitor click the link and go to that page, I want to be ...
0
votes
1answer
97 views

How to add PHP pagination to wordpress

I'm trying to make a custom PHP pagination work with wordpress, the page in wordpress is a very custom one, not a post or a page, it's a select from DB that shows flowers, the styling is ok now, but ...
0
votes
1answer
175 views

Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?

Question updated. What I'm trying to do If I want to display posts (or a feed of posts) that belong to a category AND a custom taxonomy, or a category AND a tag, or a custom taxonomy AND a tag, I ...
0
votes
1answer
81 views

Strategy for handling hierarchical pages with empty parent content

Let assume I have the following page structure /about-us (used as a parent holder only) /about-us/history (real page) /about-us/team (real page) /about-us/industry (real page) There is no content ...
0
votes
2answers
49 views

Custom Post Type URL Rewrite's

I am going to try and sum up what I am trying to achieve... Basically I have a custom post type called 'marketing_list' which will have custom fields holding information relating to marketing lists ...
0
votes
1answer
15 views

Unnecessary url

$alt_text = get_post_meta( $id, '_wp_attachment_image_alt', true); $output .= '<div class="pslide"><a href="' . $alt_text . '"><img src="' . $img_attr[0] . '" ...
0
votes
1answer
181 views

Confusion about how a URL is being parsed

I have a permalink that leads to some custom content like: http://mysite.com/extra-deal/91103/ That will take you to a page that is handled by the file: category-extra-deals.php On that page I ...
0
votes
1answer
258 views

How to set base url for php widget

SO, I have some php that I'm inserting into a widget that generates a list of pdfs within a directory on the root level of my wordpress install (see "Meeting Summaries" to the right here: ...
0
votes
1answer
60 views

Change Wordpress comments url / word

Is this possible? For example, I want to change http://mysitesitesite.com/post-name/comment-page-1/#comment-452 to http://mysitesitesite.com/post-name/custonname-1/#customname-452 What should I ...
0
votes
1answer
32 views

Replace category name with article id in wordpress urls

I would like to know, using wordpress, how to replace the category name with the article id in the url ? For example, I have a url of this kind : http://mywebsite.com/css/the-name-of-my-css-article ...
0
votes
1answer
41 views

Comment_author_url doing nothing

I have this function: <?php function top_comment_authors($amount = 5) { global $wpdb; $results = $wpdb->get_results(' SELECT COUNT(comment_author_email) AS comments_count, ...
0
votes
1answer
33 views

Inserting Media to WordPress Posts

If I insert an image to a WordPress docuament via "Add Media -> Insert from URL", and after submitting the URL and inserting to my post, is the image linked to my page or copied to my site? Thanks.
0
votes
1answer
69 views

Custom Post Type, post-formats associated to custom post type > 404 archives

I'm finishing a custom layout. Here's the code of my Custom Post Type <?php /* ------------------ [ CUSTOM POST TYPE ] ------------------------- */ add_action( 'init', 'create_post_type' ); ...
0
votes
2answers
57 views

Enabling canonical links to force search engines to go to site.com rather than site.net

I want visitors who have typed site.com, stay on site.com and visitors who have come to site.net, stay at site.net (They have one host and site.net has been parked on .com). When it comes to search ...
0
votes
2answers
28 views

Access posts while mod_rewrite is broken

On my wordpress installation mod_rewrite (e.g. the permalinks) is temporarily broken. For debugging I want to access the formerly "prettified" page mydomain.tld/page/2. What is the old GET parameter ...
0
votes
1answer
241 views

How to parse a custom url (within WP site) and obtain params passed to that URL

In my WP site-- eg. http://www.mydomain.com-- a request has to be passed to a custom URL-- http://www.mydomain.com/custompage?param1=abc&param2=def Now, I wish to obtain the parameters passed to ...
0
votes
1answer
127 views

Get logged in username in wordpress url

I want to get the username of the logged in users in the URL of my wordpress site. Like if user: arvind is logged in, I want to get the url as 'www.wp.com/arvind' or 'www.wp.com?user=arvind'. Is ...
0
votes
1answer
137 views

Author Nickname URL Friendly

Using the below code to chnage the author page url to use the "nickname". Works ok but when the nickname is more than one word it doesnt make it url friendly. Any way to do this? add_filter( ...
0
votes
1answer
176 views

Replace video url with video player

This is my plugin, this will replace the video shortcode format [video url="http://www.youtube.com/watch?v=sOnqjkJTMaA"][video] (Requirement is to show the video when a user placed a shortcode like ...
0
votes
1answer
68 views

home_url(); showing current page instead of site address

Does anyone have an idea why my home_url() function gets the URL of the current page instead of the site address? (The site runs locally using MAMP.)
0
votes
1answer
125 views

Redirect Old wordpress url to new wordpress url

What we did was delete a category to smooth out some confusion. The old url was: http://uafnews.com/headlines/my-permalink but now it is http://uafnews.com/my-permalink. How could I have people who ...
0
votes
1answer
43 views

Using variable to display a page with a different stylesheet

Is it possible to implement a different stylesheet for a page using a url variable, for example Normal URL: www.example.com/page Would use the normal stylesheet Alternative URL: ...
0
votes
2answers
86 views

wordpress url correction

I have my wordpress site in a root folder like this "www.mysite/myblog/" so to get to the blog you have to go to "www.mysite/myblog/" I'm wanting to make it so that a user can go to "www.mysite" and ...
0
votes
1answer
465 views

Website Address Keep redirect to website after migration attempt

I have a loclhost site that I heard I can migrate the site by just copy and paste the whole site from local to host if I changed WordPress Address (URL) and Site Address (URL) to my current hosted ...
0
votes
1answer
168 views

Finding URI in Child Theme

Which is best way to find URI in child Theme. <?php echo get_template_directory_uri(); ?> <?php bloginfo('template_directory'); ?> Below given code works but it has "stylesheet" in it, ...
0
votes
1answer
88 views

URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation

I'm sure there has to be some way to make this with single wordpress instalation. Posts for "learn" page are tagged with "learn" and I built a custom template that has loop that prints only posts from ...
0
votes
1answer
328 views

Tricky URL rewrite with custom values in url

We have custom post type as user_images and each of these post has a image attached with image name is 3 digit number followed by extension. When the url http://mysite.com/wp_username/3digitnumber ...
0
votes
1answer
1k views

How to prevent automatic redirection?

Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page If I go to: ...
0
votes
2answers
41 views

How i can get the URL?

How i can get the base URL in the wordpress? get_bloginfo('url') returns me the current URL. I just want the base URL e.g http://localhost/wpsite/ not any ?page_id=123 with it
0
votes
3answers
1k views

echo post-permalink without http and www

I have this line … <div class="permalink"><?php the_permalink(); ?></div> and the result on my page looks like this … http://mysite.com/whatever/post-or-so I guess it could ...
0
votes
1answer
101 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
47 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
230 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
43 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
61 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
226 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 ...
0
votes
3answers
398 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
170 views

Image not showing up in media loader success area - followup

This is part two to this question: Post Specific Uploader I am using an upload filter to put files in a location based on post_id. Now when the file uploads, the URL path in the meta is wrong and the ...
0
votes
1answer
64 views

How can I prepopulate the URL address for the add media button

I was wondering if there is a way to get the URL address to prepopulate with my web address so I don't have to type it in every time I want to insert an image. Example. Click on the upload/insert ...
0
votes
1answer
801 views

WordPress and $_GET Params

This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use ...
0
votes
2answers
401 views

custom url - add attachment's id or name after post

I want to link to attachments but through its parent page. /directors/piranha-bar/ shows all of that post's attachments on single.php and i want /directors/piranha-bar/video/name-or-ID/ to still use ...
0
votes
1answer
609 views

How do I allow http/ftp access to files I have uploaded?

I am hosting on godaddy (yes, i know - shameful - but it is a proof of concept for now) I have artifacts/installers for a mobile phone project (Windows .CAB file) and part of my build server steps ...
0
votes
1answer
82 views

include w_thumbnail_src in function?

I got a function that automatically creates a custom field in the post. I have this located in my functions.php. Image is the name of the custom field and HERE is the value. How can I put the ...
0
votes
1answer
4k views

custom htaccess rewrite rule for page

i have a page in wordpress called "video". its page id is 6, and its slug is "video" in my theme ive set it up to show content based on GET variables here is the URL rewrite im trying to set up: ...
0
votes
2answers
596 views

How to replace post image url before posting using api?

I am currently writing phpNuke import Wrdpress plug-in. I have a problem with importing posts with images: + I already had written a routine which extracts image tag text and images from source post ...
0
votes
1answer
243 views

wp_nav_menu including Skype URL

If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not. The username URL is in the following format: skype:example?call Any thoughts on add skype: ...
0
votes
2answers
346 views

Redirecting URL with Twitter Button API Not Working

I'm trying to make a Custom Twitter Button in my content.php so where it's placed at the bottom of each post and a button appears that when clicked it can send a Tweet this to Twitter with the post ...
0
votes
1answer
203 views

Modifying WP URL handing code?

I am trying to use mod_rewrite and modify WordPress' URL handling to allow for passing variables to PHP from the URL while maintaining "pretty permalink" functionality. (on WP 3.2.1) Something like ...
0
votes
1answer
71 views

Enhancin 404 to contain a search from URL

I have migrated to WordPress from other (probably unknown to you) free blogging site (bloguje.cz if you are curious) The issue is, that previous system had sometimes URL ending with ".php" and ...