PHP function call for wordpress

This project was awarded to ranganalx for $50 USD.

Get free quotes for a project like this
Project Budget
$30 - $35 USD
Total Bids
Project Description


We have worked in the past. I need a quick php job done if you can do it.

What I have is a wordpress site that has certain US states urls (slugs). From those urls I need to have variables to use as php (possibly shortcodes) that I can call on the page.

For example:

1) From this page and url:

[url removed, login to view]

I would need variables to use on the page for

State name: Alabama

and also for the state two letter code: al

2) For this page:

[url removed, login to view]

I would need the same thing:

State Name: Alabama

State two letter: al

3) I should be able to specify the capitalization of it:

Example have the option for:





4) CSV provided with the state slug (url) used on the site. State name. and state two letter code.

5) I assume you can get this info from the the slug since what I want to be able to do is put this info in the template once and use it across multiple states and have it work.

6) I assume a function to call would be best and the code should be clean and fast with little memory overhead.

7) I will need instructions on how to call the state name and / or two letter code via php in wordpress.

Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online