George Page Name Retrieval

George Page Name Retrieval adds needed functionality to wordpress developers for retrieving a post/page name, id, and title

Author:PressPage Entertainment Inc. (profile at wordpress.org)
WordPress version required:2.8.6
WordPress version tested:5.5.3
Plugin version:1.1.2
Added to WordPress repository:21-12-2009
Last updated:23-08-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://wordpress.org/george-page-name-id-ret...
Total downloads:1 227
Active installs:10+
plugin download
Click to start download

You have a theme and you need to filter certain pages to either display uniquely or perform
some customized operation. In order to make these custom modifications in your theme, you need
to get the page id, title or permalink and then when that page is loaded, you can act
appropriately. Before “George Page Name ID Retrieval,” ther was no easy way of retrieving this
page/post information. George makes this task very easy. You can now retrieve this information
directly in your theme files from PHP API’s, or from your wordpress pages/posts using shortcodes

Usage

You may use George either in you PHP/Theme files or from your WordPress posts
and pages. To use the API, simple invoke the function that returns the page
information requested. There are three API’s for this purpose:

  1. george_get_post_id(); => Returns the Post ID of the current page/post
  2. george_get_post_title(); => Returns the Page Title
  3. george_get_post_name(); => Returns the permalink page/post name
  4. george_get_pageid_by_permalink($permalink); => Returns the page/post ID for the specified permalink
  5. george_get_permalink_by_id($id); => Returns the permalink for the specified page/post id
  6. george_display_shopp_cart_count($url); => Returns a link to your Shopp shopping cart page with the total cart items as, Shopping Cart (0) [requires Shopp to be installed and activated]

You can also invoke the API’s from your WordPress pages/posts through short codes.

[george-query choice=”id|title|name|outid|outperm” value=”permalink|id|url”] => where,

  • id = the page/post id
  • title = the page/post title
  • name = the page/post permalink name
  • outperm = contains the permalink of the page id to retrieve
  • outid = contains the id of the page from the specified permalink
  • shopp = gets the cart count for your Shopp shopping cart

You enter one of the following values between double quotes:

  • permalink for choice outid
  • id for choice outperm
  • url is the url of your Shopp shopping cart page

Customization

The code written for this plugin is straight forward and can easily be customized.
If you do customized this plugin and submit your changes to us, we will make honorable
mention of your customization in the Credits.

You can edit the george_display_shopp_cart_count() function to return a different text other
than “Shopping cart”

Credits

We make honorable mention to anyone who helps make George a better plugin!

Contact

For support, go to https://github.com/presspage2018/george-page-name-id-retrieval/issues. You will require a free account on github.com.0

Please contact presspage.entertainment@gmail.com or visit the above forum with questions, comments, or requests.


FAQ
ChangeLog