Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5849429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:59:53+00:00 2026-05-22T12:59:53+00:00

So in a wordpress blog using prettylinkpro plugin, I found a link to the

  • 0

So in a wordpress blog using prettylinkpro plugin, I found a link to the author’s site about an API.

http://blairwilliams.com/pretty-link/api/

I’m trying to get a post’s “pretty link” using the prli_get_link($slug) method.

Problem is, I believe that is returning an array, and I’m not verse in PHP.

So I think I’m looking for something like this:

prli_get_link($slug)[0]

Any advice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:59:53+00:00Added an answer on May 22, 2026 at 12:59 pm

    PHP’s parser doesn’t allow direct array references on function returns, so

    prli_get_link($slug)[0]
    

    is a syntax error. You have to assign to an intermediate variable instead:

    $link_array = prli_get_link($slug);
    $first_item = $link_array[0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Subscribe2 plugin in my new upcoming WordPress blog ( http://www.adlerr.com ). My
In my Wordpress Blog I'm currently using an integrated http://U.nu url-shortener. For this I've
I'm tryng to build a slide-show in my wordpress blog.I'm using jqTransitions plugin but
I'm using a Sharebar plugin in my wordpress blog, which is floating vertically on
I'm using WP-MINIFY plugin on my Wordpress blog but because of my server's security
I'm setting up a WordPress blog and I can't manage to link an author's
I'm working on a plugin for a Wordpress blog that posts a link to
I am using wordpress to create blog similar to stackoverflow.com where users can ask
I'm using statements from here: http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/ but i had to modify them because i'm
On my Wordpress blog I am using the wp-sytax plugin to format a code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.