The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

Insert <a href=“#”> Tag Using PHP

I have existing code in my theme but my problem is I can't figure out where to place an <a> tag so I can link it to the page I want. php code <?php global $post; $slider_cats = ...
0
votes
0answers
10 views

Linking Images to Post Page from Categorized Gallery

I used the code from this thread to create a plugin that automatically makes a gallery out of images attached to posts with certain categories. It works great, but now I want to make the images link ...
2
votes
1answer
330 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 ...
1
vote
0answers
16 views

How to get rid of the strange sizing of links around posts? [closed]

I am currently running into a bit of a problem on my Wordpress site. I am designing a theme using the Bones framework, and after working for a while I have discovered a weird bug with links. Any time ...
0
votes
1answer
920 views

Active class to current link

How do I add the active class to the current link that the user is viewing? I have a mixture of pages and custom post types in my main nav menu and I know that wordpress has .current_page_item that ...
0
votes
1answer
242 views

Adding custom url to readmore link using get_permalink()

I am having issues with a custom url. I have a page with a gallery type plugin/shortcode. Now each gallery item displayed on the page, has a readmore link, linking to that gallery item post. Now I ...
0
votes
0answers
19 views

On main page link image to post page, on post page link it to it's own image?

I'm using a lightbox plugin that blows the image up to it's own window when an image is clicked. I want this behavior to ONLY happen when the image is clicked on from it's POST page. When the same ...
0
votes
1answer
13 views

Surround uploaded image link with div

When you upload image you have smth like this <a href="http://vitya/wp-content/uploads/2014/06/8.jpg"> <img class="alignnone size-Small x Big wp-image-65" ...
0
votes
1answer
11 views

Featured Images link to post parent

I want to reuse featured images for new posts. So a single featured image from the media library is attached to more than one post. When i use post_parent ); ?> on the attachment page to go back to ...
1
vote
1answer
226 views

How to hide a customization link themes menu in wordpress?

Anyone know how to hide or remove customization menu in wordpress? The link menu seen in OPTIONS:Widgets Menus Theme Options and Appearance -Theme -Widgets -Menus -Theme Option -Editor ...
0
votes
1answer
399 views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently ...
0
votes
1answer
25 views

Dynamic logo/banner depending on affiliate link

i am building an affiliate site using woo commerce and wp affiliates. There will be a network of 20-30 affiliate sites linking back to main site. I need to display the logo/banner of the referring ...
0
votes
0answers
23 views

Wp plugin modification

i find a wp plugin what replace the external links, the problem is only check on post content, but not on fields in postmeta, this is the code what checks on post content: //returns content of post ...
0
votes
1answer
10 views

link header to homepage (for wp multisite)

I am using the genesis framework and have added this code to change the way genesis uploads a header image: remove_action( 'wp_head', 'genesis_custom_header_style' ); add_action( 'genesis_header', ...
0
votes
1answer
315 views

Admin only menu/page

Is it possible to show a menu item If only admin is logged in) For any other user the menu item does not appear. For example: if there are a few pages that have shortcodes or other functionality ...
-2
votes
0answers
12 views

Loading an external url inside a page [duplicate]

Actually I want to load my Bugzilla in the Wordpress. I created one page called 'MyTestSite' in Wordpress. In that 'MyTestSite' page I want to load the Bugzilla URL http://192.168.1.13/bugzilla ...
5
votes
6answers
6k views

Disable image attachment links

Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
0
votes
0answers
19 views

How to Add A Rel Filter to All Links?

How can I add a filter in the functions.php to all links tags? Basically I am needing to add a rel="tooltip" to all my anchor tags within WordPress. I appreciate the help. Thnx
1
vote
0answers
18 views

How to apply default post categories to link manager plugin

I have a project with several custom post types - all sharing the default WP post category taxonomy. I would like to add the link manager plugin (Formally built into WP pre 3.5) to manage links - ...
0
votes
2answers
354 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: ...
0
votes
0answers
17 views

Links redirecting to localhost after migration to server

I developed a website on my localhost and migrated it to my web server. The site displays mostly everything on the home page (I lost some font settings as far as I can tell) and all the content seems ...
1
vote
1answer
63 views

Relative links for performance?

I have a blog out there, for the sake of this answer you may take a look at it: http://blog.alphasmanifesto.com/. I'm currently working my way through some performance optimizations. As you may see, ...
0
votes
0answers
17 views

Page number in wordpress Link Manager Admin panel

1- Enable Link Manger in Wordpress 3.9 with this plugin: http://wordpress.org/plugins/link-manager/ 2- I have about 1200 Links in my Link Manger! all links are displayed on one page by default, And ...
0
votes
0answers
30 views

Logout link not working

My logout link is not logging me out. May be I am missing something. I tried the below links which is generated by wp_logout_url(site_url()). But still I am logged in. ...
2
votes
1answer
889 views

Issues creating a tinyMCE plugin that creates a custom link

I'm working on a plugin that works similar to the "link" button on tinyMCE: The user highlights text -> presses a button -> enters text into a box in a thickbox popup -> submits the form -> the user ...
1
vote
2answers
31 views

Get_post_meta() won't return value

Ok guys... I'm sure this is going to be a really easy answer. I'm a complete noob at this. I have a custom field that is supposed to return a link. For some reason, it just redirects me back to my ...
0
votes
0answers
14 views

Make first child link default instead of its parent

I want to do something like this: if a parent have kids get page link of the first child else get page link of itself. For example: Page 1 Sub-page 1 (get this link) Sub-page 2 Sub-page 3 Page 2 ...
0
votes
0answers
14 views

I would like all rel=author links to lead to Google+, but those on my homepage lead to the WP author page

Is there a way to achieve this (best case, without an additional plugin)? Currently I don't use any extra Google+ authorship plugins (most likely it works through JetPack).
0
votes
0answers
12 views

Add hyperlinks in media description

I want to add hyperlinks in the description box of a media file in the library but it won't display hyperlinks for some reason. It displays text but as soon as i put a href it hides it. i'm using ...
0
votes
2answers
50 views

Add next and previous post links on pages like category, tags or archive pages

I am trying to find a solution for getting next pages for category or tag page in WordPress, tried with next_posts_link and previous_posts_link in these pages, but it's not working. Same functions ...
0
votes
1answer
232 views

How can I link to the most recent post in a category?

How can I create a link to a category--to it's most current/recent post? I want to display the actual post. I do not want to display the category with one post listing in it.I'm going to be really ...
7
votes
1answer
434 views

How to use “Add link” pop up for a WordPress widget

In the WYSIWYG editor of WordPress you get pop up if you want to add a link for a text. Is there a possibility to access this functionality? Because I want to use this pop up for a WordPress widget ...
0
votes
0answers
20 views

Problem with custom menu links when moving wordpress installation to subdirectory

I know there's a ton of posts pertaining to broken links after migrating a wordpress installation, but I haven't been able to find an exact solution to this one. A site I'm working on has the ...
1
vote
1answer
232 views

Add custom menu item using wp_nav_menu_items filter

I have added a snippet to add a "Profile" link to my website navigation menu. My code: add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link'); function my_nav_menu_profile_link($menu) { ...
0
votes
0answers
41 views

How to make Wordpress write links as https regardless of environment?

Here is my situation: SSL certificate is on one server, Website is being served from a different server. Somehow the SSL certificate is getting proxied so that my whole WordPress website can be https. ...
0
votes
1answer
34 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
1answer
47 views

How to change the link of the wordpress logo in the admin bar?

I have found solutions to change the logo itself and to remove that "about.php" link in the dropdown, but this does not affect the "about.php" link in the wordpress logo. How can I change this?
0
votes
0answers
40 views

How to customize the “Insert/edit link” popup box?

is there a way to customize the "Insert/edit link" popup box in the editor so that it does something like this: Have a checkbox that says "Insert affiliate tag at the end of link" If the checkbox is ...
0
votes
0answers
18 views

How to Log User Clicks on Link - CPT, User Meta, other?

In the sidebar, I have links that appear when a user is logged in. The links point to downloaders on various other sites as well as our own. I'd like to be able to log those user clicks so I can see ...
0
votes
2answers
28 views

Wordpress: How to make a subsubdirectory

I have a multiple word press installations that I am trying to reduce to one. Here is what it currently looks like: Installation 1 = www.example.com Installation 2 = www.example.com/foo Installation ...
0
votes
1answer
20 views

Why am I seeing 'yes' and 'no' in URLs crawled by Xenu?

This may not be a WordPress thing at all, but I've never seen it before and it's happening to a WordPress site we're completing. I use Xenu for checking sites for broken links, images etc. When I run ...
0
votes
0answers
26 views

Error post_type link admin pagination

I have an error with bad links on all my specials post_type created by the plugin "magic-fields-2". on the admin link (pagination, eg: go to page 2) i can see : ...
1
vote
1answer
83 views

Add / Remove Post Type from “Link to existing content” popup

I would like to be able to remove a custom post type AND add attached media (PDF's, Images, Docs, etc) to the "Link to existing content" in the Add / Edit link popup in the WYSIWYG editor. ...
0
votes
0answers
35 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
3answers
2k views

How can I get a different image size, if all I have is the link?

For various reasons, I can't use Wordpress' built-in Thumbnail functionality. What I want to do instead is to use the first image in the post as the thumbnail. Here's what I found in the codex: Show ...
1
vote
1answer
48 views

Make page tab link to pdf

I'm sure this is ridiculously simple, and I'm just missing something very basic. I have a CV as a pdf. I'd like to have the tab that says CV open up that CV as a pdf. I do not want to embed it as a ...
0
votes
2answers
36 views

How to link a word comprised of a custom field with another?

I want to link content comprised of a custom field(field1_details) using another custom field(field2_link) which is a URL type. the_field('field1_details') is text_area field and ...
-1
votes
1answer
27 views

Unsual behaviour of navigation Menus

I deleted all the previous menus which where there in my site. Then I created a new menu called Home and added few pages to it So my menu looks like this Problem : When I click on About us and other ...
0
votes
1answer
114 views

WordPress is adding rel=“nofollow” and target=“_blank” to internal links in posts and pages

For some reason WordPress started to add rel="nofollow" and target="_blank" to some of my links in my posts and pages. Not to all my links but randomly. I really dont know why because when I'm ...
-1
votes
1answer
71 views

How to list all external URLs that I have posted on my WordPress blog?

I want to list all the external links of my posts in a single place/file. How can I achieve this? Is it possible to achieve this via a plugin? Is it possible to achieve this with a built-in ...