2
votes
1answer
31 views

How can I store page ID in a post instead of other selected permalink?

We're using Wordpress as a knowledge base. We just left mediawiki and jekyll for Github pages and reduced the amount of different systems from four to just one. One Wordpress installation for blogging ...
0
votes
1answer
35 views

How to link to specific part of a page in wordpress permalinks

I have a one page template(muse theme) which its main menu items link to a specific part of the page in the webpage itself. I want to add # character before post name to go to the specific part of the ...
0
votes
0answers
37 views

Possible to hide parts of the slug from get_template_directory_uri and bloginfo('template_directory')

At the moment i am running and building a wp site on a local install with mamp. Additionally i have moved the wp files from the root directory to a folder. i've included files then e.g. with ...
0
votes
2answers
63 views

Can WP give a value a post ID?

So I have queried out some data from another DB and obviously they're not a post which means I can't use the standard permalink to link them to an existing page with it's post type. So I thought that ...
0
votes
0answers
31 views

After changing permalink settings, everything works fine except for the two most recent posts

I've been searching for a couple of hours for a solution, but so far haven't found anything. I updated my site's permalink settings from 'post name' to 'day and name' and everything seems to be ...
0
votes
1answer
48 views

My posts section for logged in user

I would like to create a page that shows only posts written by the user logged in and get a link (such as www.example.com/AuthorPostsID) to put on the menu. I'm trying for two days. Does anyone know ...
0
votes
4answers
81 views

I copied my site to another site but all links point to old site

I copied my site: www.old_site.com to a new address: www.new_site.com All links in new_site point to the old site. What do I have to change so that new site points to new site? Thank you.
-1
votes
2answers
38 views

After the local installation of an old WP website I can see the homepage but I can't access to the articles, why?

I have import on my local webserver a backup of a website made using WordPress but I am finding some difficulties with PermaLink The main problem is that if I use the permalink setted as Article Name ...
0
votes
1answer
40 views

Latin character conversion

I'm managing a wordpress blog in Spanish for the first time and I'm currently migrating servers (e.g server A and B). The problem is that even though the file names are correctly sanitized or escaped ...
0
votes
1answer
201 views

How to get category slug link? ( include parent categories)

for example, if main category slug is cars; sub-category slug is: Ford; how to get the permalink of Ford, including its parent categories' slug? ( get_category_link() returns mysite.com/?cat=19 type ...
0
votes
1answer
85 views

Best way to add internal link in widget

I'm looking for a way to transform a static piece of code into a widget to display in different sidebars containing a simple internal link. The basic code is: <div class="my-link-box"> <a ...
0
votes
1answer
445 views

why some permalinks adding characters/ruining links

I am using a gallery to link to some sub categories. Some of the links within the category work exactly how they should. However there are a few that are adding strange characters on the end, I've ...
0
votes
1answer
60 views

How should I add links to other pages/posts from my post?

I'm wondering how should I link to other posts from one of my posts. Ideally I would use a function like get_permalink() but php is not available in post content, so how can I link to other pages ...
0
votes
1answer
109 views

Pretty links for PHP pages above WP /blog directory?

I've made a new WP installation in a subfolder /blog, set up with "Post name" permalinks. I'm ready to make several other non-WP website PHP pages which would reside above the /blog directory. I was ...
0
votes
1answer
152 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
0answers
166 views

Changing /author/ link to something else: what is a better way?

Is there a better way than this snippet I am using? function change_author_permalinks() { global $wp_rewrite; // Change the value of the author permalink base to whatever you want here ...
0
votes
1answer
30 views

Permalink / sub-template issue

I've got a WP page with many subpages with their own template. The main template includes them. Each element with its own template can be received with an id and an anchor that is linked to this idea, ...
2
votes
1answer
342 views

Menu Link Redirect Based on Username or User ID

I am building a client portal where my clients can log in and see all their pending projects, completed projects and create new projects. Though I'm stuck at the start. The dropdown menu is called ...
0
votes
1answer
240 views

How to add nofollow on all external links without plugin?

I have tried many plugins, which are doing the thing I want, but they are blocking my other plugins (1 in particular, which is indispensable for my site). Anyhow; how can I add a nofollow on all my ...
0
votes
0answers
142 views

Modifying the permalink href for posts with jquery

I Was wondering if there is any way to modify a link to add for example a category that I could use with $_GET. For instance, www.example.com/this-is-the-post/category (or ?cat=category) I've tried ...
0
votes
1answer
34 views

Permalink structure as code in back-end?

I have this permalink structure: /%year%/%monthnum%/%postname%/ What I want to is, output the link of a post in the back-end and let users input a postname, that will automatically lead to that post ...
0
votes
1answer
61 views

Remove link from Page name in navigation bar

I have a wordpress site and there is a navigation bar with menu and submenu. I want to remove link attribute from menu items that have sub menu. Is it possible? because i couldn't achieve to this by ...
0
votes
1answer
88 views

Internal linking to posts permalink fail because of spaces and stripe at postname

I have written a function which outputs a tag in a textarea in which people can link internally to other posts on the website. This works like a charm except with using a postname permalink ...
0
votes
1answer
24 views

What is the issue with our links? It creates a loop

On behalf of the university's radio station, I am trying to solve the issue with our links. When you go to our site http://brookesradio.com, if you click one of the nav bar or header, twice or go to ...
0
votes
1answer
237 views

wp_get_attachment_url not working

I have a template file which shows the posts of a category called downloads. for each posts i have attached a pdf file. I have given a link to download the pdf file on the page. But when i click the ...
0
votes
2answers
369 views

Create custom links for excerpts with php dynamically

Good Day I am using excerpts in my wordpress theme. Now in wordpress's documentation, they say wordpress does not automatically add links for the excerpts, you have to manually add them like this: ...
1
vote
0answers
98 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
3
votes
1answer
239 views

Social Media Links on homepage - within posts/post loop

On my WordPress site I've got a social sharing bar that I created myself. Here's a picture of the social sharing bar: http://d.pr/i/ucSG - I have the social sharing links included within 'index.php' ...
1
vote
1answer
841 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 ...
0
votes
1answer
36 views

Format HTTP links

I have a custom page template creating an xml feed found on a WP page at http://example.com/xml/ I am trying to access this xml document via Google Maps but it appears I need the actual file name ...
0
votes
1answer
48 views

How to link post titles on page A to its posts on page B?

I set and reversed the order of a list of post titles on my front page with: <?php global $post; $args = array( 'category' => 6 ); $myposts = get_posts( $args ); $reverseposts = array_reverse( ...
0
votes
1answer
198 views

How can I see a list of all pages my WordPress site has generated?

I would like to be able to to see some sort of list of all the individual pages my WordPress site has generated that would inevitably be visible to a user or a search engine. For example, I know tags ...
1
vote
2answers
801 views

How do I customize my WordPress shortlink structure in link-template.php without a plugin?

Right now my shortlink structure looks something like this: example.com/?p=451 I would prefer it to look more like this: example.com/abc123 Any ideas how I can alter the code to do just this?
2
votes
2answers
415 views

Getting archive pages in WP's AJAX internal link finder?

I often need to link to custom taxonomy term archive pages and would love to be able to do so through the AJAX internal link navigator added to the visual editor in 3.1. Is there any way to get this ...
-1
votes
3answers
809 views

PHP code for link with text

I was exploring and ran across this post: Grab First Link From A Post, Grab First Blockquote I would basically like to do the same thing, but have it call not only the URL but also the link, since I ...
4
votes
7answers
11k views

How to use relative links on my pages?

In my web pages I want to use relative links instead of absolute links. However, pages do not allow php code inside them, so i cannot do to from a url in a relative manner. How does one get ...
1
vote
4answers
4k views

Category links suddenly started giving 404 errors

My Wordpress blog suddenly seems to have started giving me 404 errors when accessing category pages. For example, http://blog.rtwilson.com/category/tok-related/. Interestingly, this doesn't happen for ...