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 7923087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:11:25+00:00 2026-06-03T17:11:25+00:00

I’m currently integrating information from a third party API into a wordpress site. What

  • 0

I’m currently integrating information from a third party API into a wordpress site. What i need to do is create a “dynamic page” where it displays the details of a specific record from the API. Since there are 1000’s of records i dont want to create a seperate page in wordpress for every record detail view.

I’ve been looking around and it seems there are two main solutions (i’ve discarded the custom post type option as i dont think it fits my needs, but im open to re-evaluate). The first is to create a page in the wordpress pages admin, then setup a custom template for that page which calls the API methods, then just builds the template. The second is to somehow use the plugin i created, to register a hook for the URL im using, then have the plugin handle the display (not sure how i go about that yet).

I’m wondering what people here think is the best approach. The prerequisites are:

  1. To be able to handle the URL to retrieve the ID for the record to
    display (must support standard URL param’s as well as custom slugs).
  2. To have a custom template (with the ability to call the
    get_sidebar() function as its widgetised)
  3. At some point i will be adding an administration panel to add additional content to each record detail display such as related images, which are not supported by the external CMS.

Any advice or a point in the best direction would be appreciated, thanks

  • 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-06-03T17:11:28+00:00Added an answer on June 3, 2026 at 5:11 pm

    I ran into this the week while writing a custom API (REST + JSON) for a WordPress site I was working on. My solution was to use a page-template and use that as the entry point for the API. That’s when I came across https://stackoverflow.com/a/4975004/1386140. The one catch, though, is that it would require the user (admin of the site) to title the page to match the parameter that the plugin checks against

    $wp->query_vars["pagename"] == 'YOUR_PAGE_NAME'
    

    For my purpose, this was more than sufficient, especially since we redirected irrelevant traffic. This allows additional query parameters in the URL, though doesn’t play friendly with slugs. Since it will still be called as a typical page methods like get_sidebar() would still work.

    To get it to work with slugs, I would look at this post ( https://stackoverflow.com/a/2487407/1386140 ) to get started in the right direction (looks legit, but I haven’t worked with custom rewrite rules and plugins before).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a French site that I want to parse, but am running into
I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I want use html5's new tag to play a wav file (currently only supported

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.