Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

Post Meta Name

by

› Forums › Post Pay Counter › Support › Post Meta Name

We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.

  • This topic has 9 replies, 1 voice, and was last updated 5 years, 3 months ago by Stefano.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • February 3, 2020 at 9:17 pm #70794
    Derek
    Guest

    Hi,
    I have asked my WordPress Theme support for the postmeta holding the visits so that I can see the visits in the stats. He has sent me a screen capture explaining where I can find the post meta but not what or where it is. Could you tell me from the screen capture what it is I’m supposed to enter in you postmeta box? If so how can I send you the screen capture – it’s a .png file.

    Thanks

    Derek Collinson

    February 3, 2020 at 9:18 pm #70796
    Stefano
    Keymaster

    Hi Derek,
    I am not sure I can, but leẗ́’s try! Show the screen 🙂

    Have a nice day,
    Stefano

    February 3, 2020 at 9:30 pm #70798
    Derek
    Guest

    Hi,

    Thank you but how can I attach the .png file to send to you?

    Derek

    February 3, 2020 at 9:32 pm #70800
    Stefano
    Keymaster

    For example here https://imgbb.com/

    February 3, 2020 at 9:37 pm #70802
    Derek
    Guest

    Thank you. Here it is https://ibb.co/T8v23vg

    February 3, 2020 at 9:41 pm #70804
    Derek
    Guest

    He also sent me this screen capture https://ibb.co/HGn1pxJ

    February 4, 2020 at 8:25 am #70809
    Stefano
    Keymaster

    Uhm, the information we are looking for it not directly available in those screenshots, but there are hints. Search for $post_views_counter_key in the file tp_page_views.php. You should most likely find (at the top) something like public static $post_views_counter_key = "something" 🙂

    Have a nice day,
    Stefano

    February 4, 2020 at 11:23 am #70812
    Derek
    Guest

    On the advice of the them support people I inserted <?php echo $td_mod_single->get_views();?> as the post meta in the box you provide under options.

    Have I formatted it correctly or do I need to remove parts of this to get it to work as the postmeta in your plugin?

    Thank you.

    February 5, 2020 at 2:48 pm #70827
    Derek
    Guest

    Hi,

    Could you please reply to my previous message?

    Thank you.

    February 5, 2020 at 3:51 pm #70832
    Stefano
    Keymaster

    Sorry for the delay,

    Have I formatted it correctly or do I need to remove parts of this to get it to work as the postmeta in your plugin?

    No, it is not formatted correctly. You need to provide a valid callback: either a standalone function (like get_view()) or a static method in a class. Note that, anyway, the function should take in a post ID to work fine with Post Pay Counter 🙂

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Post Meta Name’ is closed to new replies.

Your cart

Number of items in cart: 0

  • Your cart is empty.
  • Total: €0.00
  • Checkout

What are you looking for?

BEFORE POSTING

Before posting, please please please do have a look at our Documentation section. Your problem may be addressed there, allowing you to solve it without help from us :)

Copyright © 2025 · Centric Theme on Genesis Framework · WordPress · Log in