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.
July 31, 2019 at 9:18 am #66291shubhamGuest
hey i am using post pay counter in my website but the issue i am facing is that i am using frontend form in my website to publish the post by authors and in the form at frontend i have used custom text fields by user . the content filled by users in that frontend form is not counted by the post pay counter not the words or even the images.July 31, 2019 at 10:11 am #66293shubhamGuest
and the the custom blocks have meta key which is given by me so how can i make sure that the post pay counter count the text or images added in that custom fieldsJuly 31, 2019 at 11:23 am #66294
the plugin does not retrieve post content from sources other than the default WP one, as that is what virtually all websites do. You will need to have some custom work done in order for the plugin to retrieve the content from your custom field and to work properly 🙂
Have a nice day,
StefanoJuly 31, 2019 at 12:01 pm #66297shubhamGuest
can you provide me how can i do itJuly 31, 2019 at 12:11 pm #66301
Are you a developer? 🙂July 31, 2019 at 12:14 pm #66304shubhamGuest
i have not worked that much deeply but if you can provide me some help what i need to do and where i need to do changes i think i can work with that because i have purchased your pro version and all the addons except one so i need to do it if you can help me with . Please provide me some steps how can i do itJuly 31, 2019 at 3:46 pm #66310
Right – so what you can do is look for
post_contentin the file
post-pay-counter/classes/ppc_counting_stuff_class.php. In the function
count_post_words, the post content is wrapped in a filter and it should be easy. On the other hand, in the function
count_post_images, the plugin takes the WP post content without any filtering. You can add it yourself with the name
ppc_count_post_images_post_content_startand I will add it to the public code in the next release, so you will still be able to update to future versions 🙂
Or another way would be to hack the function by filtering its output through
ppc_counted_post_imagesand calling herself back with
$post, having populated
$post->post_contentwith the post content taken from your custom field.
Hope this helps!
Have a nice day,
August 1, 2019 at 7:11 am #66320shubhamGuest
- This reply was modified 1 year, 2 months ago by Stefano.
the thing is that i am using the frontend publishing pro plugin to create a form in the frontend in my wordpress and it asks for meta key what i need to put of that field so what command line did i need to insert in your code and at which place . like how can i define in your plugin that the custom filed with that meta key be counted send me sample code. If you want i can give you access to my testing wordpress enviroment in which you can add it then i will make it live on my live website. Just tell me which addons are required by you so i can remove their license from my live enviroment and add it on my testing enviroment.August 1, 2019 at 9:52 am #66326shubhamGuest
hey thanks for your help but i have tried a new shortcut in which i gave my custom fields meta key of post_content and the post pay counter starts counting those custom fields text. If i find any issue i will message youAugust 1, 2019 at 9:57 am #66328shubhamGuest
can you also tell me how the counting of images is done by you so i can check how can i make the counting of images putted by me in my custom image fields so in the end they can count itself.August 1, 2019 at 10:01 am #66330shubhamGuest
hey looks like the putting the meta key post_content is not working nicely can you help me with that i am unable to find which function is used by the plugin to create custom text field i can provide you with the testing wordpress enviroment so you can checkAugust 1, 2019 at 11:09 am #66332
I would strongly advise adjusting your setup to have the post content into the default WordPress field, instead of a meta field. All plugins and themes will expect this, and doing it differently will always require tweaking the code.
Then, if you really want to keep your current setup, Post Pay Counter will need to be tweaked as well. However, changing plugin code to make it fit your site is not part of the support we provide, but is instead custom (paid) work. So if you would like I can provide you with a quote for the custom work. Otherwise, sorry, but we cannot put in (several) paid hours of work without being paid 😉 Hope you understand!
Have a nice day,
StefanoAugust 1, 2019 at 12:25 pm #66341shubhamGuestThis reply has been marked as private.August 1, 2019 at 6:58 pm #66360
Why not put the post content in the default WordPress field? 🙂August 1, 2019 at 7:22 pm #66363shubhamGuest
the thing is that the i want to create a freelancer network in which users can register as author role in my website and then they will publish content but the thing is that i want to create a template in which i can limit the quantity of content users can post on my website like i can limit the way the users can insert their the text(minimum or maximum words) and i want users to create a design like there will be one paragraph then one image then 2 paragraph then one image. So to make sure that my freelancers will post the content in the way i want thats why i am creating a templateAugust 2, 2019 at 10:27 pm #66392
Right, I see your point. I guess the same could be achieved using the WP post content without using custom fields, but I cannot guarantee. Any further code work on our part would be classified as custom (paid) work, I’m afraid, so if you feel like requesting a refund for your transaction, we’ll refund the whole amount you spent – that’s the best I can offer. Anyway, I’d like to mention that this is not an issue of the PRO version, but the free already works with WP official post content 🙂
- The topic ‘words not counting’ is closed to new replies.