WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add files from my site or from external links with files to any of my posts, and be able to add the size of the file and choose which ones it will do "File Force" and which not. I want to have too a counter that it will show how many clicks/downloads the file had. Any link that I add to a post internal or external, I want it to have automatically rel noindex, nofollow. Is this possible to do with custom fields???

I also tried by adding media>external media, I inserted it to the post but it doesn't show it in the post, have I done something wrong or I have to something more to find out?

share|improve this question
Do not delete and re-ask questions! Particularly when someone has already offered an answer! – EAMann Apr 26 '12 at 20:23
ok, but it was another question in this post and I re-edited but I thought that it was better to make a new question and that's why I deleted it. – Alex Apr 26 '12 at 20:40
Yes, you should ask separate questions. If you ask a question that's answered, though, don't edit that question out. It makes the site hard to navigate, clutters your profile with a lot of duplicate posts, and leads to people flagging things for moderator attention. – EAMann Apr 26 '12 at 21:03
ok thanks for the information. – Alex Apr 26 '12 at 21:16
-1 for without using a plugin – this is pure plugin territory and should not be bundled to a theme. I strongly recommend to all readers not to follow this approach. – toscho Apr 26 '12 at 22:54
up vote 2 down vote accepted

I have used custom fields in the past to do something kinda like this. You name each custom field the same, and then in the value, give it some separation character. I used ||.

Then you can do something like this:

$output = array();
foreach($custom as $c)
  $output[] = explode('||',$c);

Then you'll have an array of arrays with your information. From there you should be able to do with it what you want.

I also wrote a shortcode to go along with this, that allowed me to display it anywhere in the page. That allows you to have more flexibility, and you don't have to mess with a custom template.

share|improve this answer
Hi Aaron, thanks for your immediate response but I can't understand how I can use your answer to my question. – Alex Apr 26 '12 at 20:42
In the context of the original question, this made sense. The original question was along the lines of "How to make a list of files for download" – Aaron Wagner Apr 30 '12 at 11:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.