• Skip to primary navigation
  • Skip to main content
  • Skip to footer

TECHXT

simple extendable solutions

  • Home
  • Wordpress Tutorial
  • SEO
  • How to
  • Forum
  • Knowledge Base
    • Domain Name Generator
    • My Tech Projects
    • News
    • Security
  • About
  • Search

Adding post ID to the custom button feild templates|Tweet Like Plusone and Share Plugin|Plugin Support Forum|TECHXT

.

Avatar
sp_LogInOut Log Insp_MemberList Members
Lost password?
sp_Search Search
Advanced Search
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
Home
Plugin Support Forum
Tweet Like Plusone and Share Plugin
Adding post ID to the custom button feild templates
Go to Bottom
sp_NewPost Add Reply
sp_NewTopic Add Topic
sp_Feed Topic RSSsp_TopicIcon
Adding post ID to the custom button feild templates
April 7, 2016
7:05 pm
Avatar
Justin Maxwell
New Member
Guests
Forum Posts: 2
Member Since:
April 7, 2016
sp_UserOfflineSmall Offline
sp_UserWebsite
Go to Top
1sp_Permalink sp_Print sp_QuotePost Quote

Hi.

We've had a request to put our 'tib' button into the plugin, which would be super-straight-forward for us, except we need a 'clean' unique string for each post (like, for example, the WP post ID)

Unfortunately, we can't use the encoded title, and the URL can get too long for our back-end.  The post ID is perfect, but not available (eg: as %%ID%%) - defaulting back to page ID perhaps outside the loop.

For now we're just going to add another content filter in functions.php to substitute in the ID for unparsed %%ID%% after the plugin filter, but it'd be so much easier if we could just include the ID from the button code.

(side note: the slug would probably be okay...)

Cheers.

April 7, 2016
7:33 pm
Avatar
_sudipto_
Admin
Forum Posts: 537
Member Since:
June 22, 2011
sp_UserOfflineSmall Offline
sp_UserWebsite sp_Twitter sp_Facebook
Go to Top
2sp_Permalink sp_Print sp_QuotePost Quote

Hi Justin,

Thanks for the suggestion. %%ID%% and %%SLUG%% will be added for custom buttons in my next update.

 

Cheers....

< My Domain Names Generator tool crossed 50,000 page views. If you haven't tried yet, then try it out. />

April 7, 2016
8:03 pm
Avatar
Justin Maxwell
New Member
Guests
Forum Posts: 2
Member Since:
April 7, 2016
sp_UserOfflineSmall Offline
sp_UserWebsite
Go to Top
3sp_Permalink sp_Print sp_QuotePost Quote

Awesome!

And thanks for the very prompt reply...

 --J

sp_NewPost Add Reply
sp_NewTopic Add Topic
Add Reply: Adding post ID to the custom button feild templates
Guest name (required):
Guest email (required):

NOTE: new posts are subject to administrator approval before being displayed

Guest URL (required)
Math Required
What is the sum of:
3 + 5
sp_Feed All RSS
Go to top
Forum Timezone: America/New_York
Most Users Ever Online: 177
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Natália Gastão: 10
indy: 6
Milan Berger: 5
Cesar Bielich: 5
YethzART: 4
Aqua Skye: 4
Member Stats:
Guest Posters: 369
Members: 88
Moderators: 0
Admins: 2
Forum Stats:
Groups: 2
Forums: 5
Topics: 384
Posts: 1334
Newest Members:
test usser, Anthony Ang, Fernando Rueda, Jesus S. Jr Matubis, Quinton Williamson, William H Cole
Administrators: Administrator: 4, _sudipto_: 537
© Simple:Press —sp_Information

Footer

Subscribe by email

FOLLOW US :

Tools & Apps

  • Domain Names Generator
  • Our Wordpress Plugins
  • HTML Code Table

TechXT Network

  • www.seecoupons.com – Just another Deals & Coupons site
  • pincodes.techxt.com – A search engine for Indian Pincode.
  • stdcode.techxt.com – A search engine for Indian STD Codes
  • mobileinfo.techxt.com – A search engine for Indian Mobile Codes
  • bankifsccode.techxt.com – A search engine for Indian Bank IFSC Codes.

Info

  • Contact us
  • Privacy Policy

  •   simple extendable solutions

© Copyright 2025 TECHXT.COM

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.