Tagged Questions

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)

1
vote
1answer
803 views

why does anchor name add a slash to url?

I am trying to do what should be some the most basic html, but it's not working for me. Here is my code: <a name="rocket"></a> <div> <h3>The Title</h3> <p>some ...
0
votes
1answer
198 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 ...
-2
votes
1answer
210 views

Fetching Video From YouTube Automatically [closed]

I am using WordPress, and a theme called DeTube. Is kind of a YouTube clone, and I use this website to upload mainly videos from YouTube. Is there anyway to fetch videos and populate all the required ...
1
vote
1answer
447 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
0
votes
0answers
35 views

How can i do a search for tags in a certain category?

I'm trying to search for a certain category with a tag, how can I do this via url? For example: www.example.com/?cat=1&tag=tag1 how can i achieve this using parameters in the url?
1
vote
1answer
2k views

How to get permalinks with category base working with sub-categories

I ran into an issue with a site that needs the category base also included in the custom permalink structure. I know this is an issue and I have read many posts like this that gave me some insight... ...
0
votes
1answer
55 views

How to remove the number of a comment in the url slug?

Searched through google but can't find anything related to it. Either I don't know what terms to use when searching or there's nothing about it. I want to remove #comment-* we all know that it ...
0
votes
1answer
200 views

Per Page Permalink Structure for Page Post Type

I am trying to Re-Write Page URL's so that they END with .htm I was able to do this using... /* Add .htm extension to Page URL Links */ add_action('init', 'htm_page_permalink', -1); function ...
1
vote
1answer
77 views

How to use all tags in post permalinks

My site with pictures is set up so that the posts do not have a title and have only tags. I would like to know how to use all tags in permalinks settings?
0
votes
1answer
116 views

Prevent Wordpress from automatically correcting URLs

I notice that if I type in http://www.example.com/pag I can land on an existing page that has a name like http://www.example.com/page_five. I don't know exactly what causes this, but I want to know if ...
0
votes
1answer
105 views

Change the default video URL in a post to shortcode format

I want to add video from youtube/vimeo to my post.Whenever i add a video to my post ,there will display a link like https://www.youtube.com/watch?v=dsUXAEzaC3Q in my admin(Add new post ),and in the ...
0
votes
1answer
86 views

Broken image URL

I seem to be having a problem with broken URL links in posts for images. If you click on the image from the post you will see the URL but if you try to then copy and paste that URL it will show as a ...
0
votes
1answer
80 views

Archive of custom post type returns 404 [duplicate]

I have created a custom post type "video" (see my functions.php below) and it should return an archive on mysite.com/video but instead I get a 404. Functions.php // Video's add_action( 'init', ...
0
votes
0answers
32 views

Change Wordpress's URL from “abc.com” to “abc.com/de”

I have a domain. Currently, the site loads at that domain's root-- abc.com-- but I want it to to load at abc.com/de because I intend for the site to later become international. I looked already at ...
0
votes
0answers
45 views

How to remove the extra characters passing in the Custom post type

I have created the custom post type and the custom taxonomy. Then I have created the template file in the name of taxonomy taxonomy-product-categories. I created the post type, then added to the ...
0
votes
1answer
87 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.)
1
vote
1answer
83 views

Shortcode for a link and thumbnail

<?php // Add Shortcode function blog_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'id' => '', ), $atts ) ); // Code if (has_post_thumbnail()) { $url ...
0
votes
2answers
56 views

Post's ID pattern?

Each post has an ID and I would like to know how they were assigned. Is there a pattern? Why are the ID's not being incremented by 1 every posts? It would be easier..My ID's go from 9867, to 9869, to ...
1
vote
2answers
203 views

open all .docs in word online

Hey I'm trying to make all .doc/docx .xls/xlsx files open in office online. This would mean that every link to a .doc http://mywebsite.com/wp-content/uploads.link.doc would have to instead point ...
5
votes
1answer
356 views

Wordpress Permalink changes to question mark (?) in URL

My Permalink custom url is /%post_id%/%postname%/ and my website is in Persian language, for some posts the Permalink is change in URL from ...
4
votes
2answers
1k views

Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

I made a site some time ago and after some days some posts were indexed by search engines. Today I changed the permalink structure from /%postname%/ to /%category%/%postname%/. After that, when ...
0
votes
3answers
203 views

In Settings>>General I am missing some fields

I am new to Wordpress and downloaded the 3.5.1 version from my hosting provider. I want to add www in front of my domain and I read from many sources how to do this. Go to settings then general and ...
2
votes
3answers
203 views

Linking comments from registered users to their profile pages

I am trying to find a way to link the 'username' in comments from registered and logged in users to their profile pages instead of their website URL. And comments from unregistered users to their ...
0
votes
1answer
135 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 ...
2
votes
1answer
166 views

How to create custom taxonomy URLs without taxonomy name?

I have a website that lists businesses in different cities (this is a niche site, so all businesses have the same "classification"). For starters I created a CPT for locations and a taxonomy called ...
0
votes
1answer
1k views

Passing multiple variables through url (php)

I'm trying to pass two values to another page. Both pages are WordPress page templates. First, I pass the value as such: <tr ...
1
vote
0answers
97 views

change content based on url per plugin

I have a wordpress page that uses a custom template I created. The url looks like this: http://localhost/custom What I want to do, is have the content for this page change, depending on the action ...
3
votes
2answers
1k views

Disable Wordpress URL auto complete

I recently noticed that Wordpress tries to auto-complete a URL when it's not submitted in its entirety. E.g. I have a post URL that looks like this: http://www.mysite.com/some-post-title If I ...
0
votes
2answers
352 views

How do I mitigate the forward slash problem for URLs of images after a WP migration?

I migrated my WP deployment from the old server to the new server. The site still has the same URL (i.e. http://my.site.com) but I've moved my WP deploy from the site URL to a subdirectory of said URL ...
0
votes
1answer
42 views

Function in functions.php by url

I want to use wordpress content in external mobile app. I need an URL address to get content from function located in functions.php for example: function test() { return 'it works'; } What I ...
3
votes
2answers
568 views

Removing hierarchical pages in the permalink

I have several pages set up in a hierarchy on my site. Currently the site's pages and URLs look like this. Page name | Current URL | Preferred URL ...
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
91 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 ...
1
vote
1answer
2k views

Creating a dynamic URL structure

I want to create a directory structure for my WordPress links and for the final page to be based on the taxonomy of the page. So I have a business that belongs to a city (meta) and country ...
1
vote
2answers
609 views

Setting up two separate blogs while using WordPress as a CMS

I need to get this set up ASAP and cannot seem to figure out how to do this after searching and searching. I am using a WordPress install mostly as a CMS. I would like to have two separate areas on ...
1
vote
2answers
492 views

Link all Wordpress images size

How i can link all different images size upload in wordpress? I've definited different size image with the plugin simple image size so i'ld like show in single post, links to all new images example ...
2
votes
1answer
779 views

How to increase the character limit for post name of 200?

I have post name in Thai which uses UTF-8 character. Many of them encode into super long in ASCII e.g. วิธีการหลีกเลี่ยงข้อผิดพลาดทั้ง-8-ในชีวิตการแต่งงาน I've changed the type of "post_name" using ...
3
votes
1answer
1k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
0
votes
1answer
336 views

404 error on cyrillic url

I am using Another Wordpress Classifieds Plugin (awpcp) with Ukrainian translation. Due to it's limitations I am forced to use Cyrillic urls. While the site navigation works perfectly, when I reload ...
0
votes
1answer
67 views

Is there a list of all possible WordPress URL's?

I'm looking for a way to find out how my WordPress site handles various incoming requests, some of which I have not written templates for. For example, there are a number of archive views (year, ...
1
vote
1answer
763 views

Insert custom ID into wp_get_attachment_link

I'm working on this function of WordPress. function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $text = false ) { $id = intval( $id ); $_post = ...
0
votes
2answers
242 views

WP Nav menu append to url

Using wp_nav_menu() , how can I append a value at end of each URL? For example, I have the following url: http://www.example.com/ but I have to append a language parameter at the end, so the url ...
0
votes
1answer
514 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
54 views

Organizing the Navigation Menu

I have a problem with menu organization. I have a Pages with url "pressroom" and have a Category with the same name. I want to make it a one menu item. Pressroom (sitename.com/pressroom/) page 1 ...
1
vote
0answers
290 views

wp_insert_post - How do I prevent incremental numbers on child pages?

I'm using wp_insert_post to dynamically generate child pages for a given page using a predefined array of values. The goal is to give each child page the same slug. For example, clicking "Generate ...
0
votes
1answer
61 views

Using functions concatenated with strings inside a variable

Trying to do some dynamic image sourcing but I'm stuck. Probably pretty basic stuff, but I'm new to this. This works: <img src="<?php ...
0
votes
1answer
418 views

Why is WordPress saving full-urls to the database?

Every time im about to put my local project into staging/production environment im beeing hardly reminded that WordPress saves all the urls as absolute.So i need to rewrite all the urls with a ...
-1
votes
2answers
245 views

Remote Image (from URL) as Media Library element

I have slow upload on my wordpress server and I want to export two very big image to external server. So I need Media Library Image to use in other component. I cant edit URL of Image. Is any plugin ...
0
votes
1answer
136 views

Append custom parameter to taxonomy/term URI

I have a Custom Post Type named "Cars" and 2 Custom Taxonomies "Ferrari" and "Lamborghini". Each taxonomy has 2 Terms: "New" and "Used". These URIs work as expected: http://myhost/ferrari/new ...
0
votes
2answers
79 views

Is Wordpress API visible from PHP file called in htaccess

I'm trying to add some rewriterules in the .htaccess file to deal with hotlinked images - specifically I want to add the URL from the post where the image appeared to the header location information ...