tavy87
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Issue with API after 6.2 updateTry this after reusing some of your variables:
import urllib3
import json
http = urllib3.PoolManager()
encoded_data = json.dumps(post).encode(‘utf-8’)
response = http.request(‘POST’, url + postid, body=encoded_data, headers=header)
response_json = json.loads(response.data.decode(‘utf-8’))Forum: Developing with WordPress
In reply to: Issue with API after 6.2 updateFor me it seemed the issue was specific to the “requests” library and the wordpress API. Using urllib3 instead for my requests worked.
Forum: Developing with WordPress
In reply to: Issue with API after 6.2 updateI’m seeing the same issue, but I don’t have any authentication. Just a GET request that works in the browser but not in Python requests library
This worked great, thank you. I’m wondering if it’s also possible to sort the resulting adverts_list in ascending/descending order by distance to the lat and lng provided?
Thanks for any help!
Hi Greg,
Thanks for the quick response. I actually already have that plugin and I should have mentioned my request more clearly. I’d like to display a list of adverts as the adverts list shortcode allows, but I do not want a search feature to be enabled for the user. I simply want to specify parameters in the shortcode for a specific location/radius, and then on the page’s first loading it will display a list of adverts around that location for me, without any search input by the user. My goal is to make various landing pages that show subsets of adverts based on distance from a city or lat/lng point.
Thanks again for any help you can offer!
I’m still having issues.. It seems that the widgets within my sidebars have all disappeared and I didn’t notice… Even restoring my website and DB to 2 days ago didn’t solve the problem or bring them back. How can that be? Can switching themes back and forth cause the sidebars to get lost and not know which widgets were in which sidebar?
Forum: Plugins
In reply to: [Adminimize] adminimize disable other plugins meta boxes by css idQuick question regarding this… Is this disable section trick doable based on user roles? Or if I hide a CSS element, it’s hidden for EVERYONE including the admin?
Thanks for any help
Forum: Fixing WordPress
In reply to: LearnDash courses not in orderWere you able to solve this? I’ve been trying to fix this issue myself, and LearnDash support doesn’t seem to understand my frustration… I don’t know why the Order attribute isn’t being used for courses, seems like such a simple fix as they already use Order for lessons, topics, quizzes, etc and those all work fine.
Forum: Plugins
In reply to: [Flowplayer HTML5 for WordPress] Add speed controls to Video PlayerAlso I’m a bit confused as to whether or not the plugin is needed if I already have Flowplayer Drive. They provide me an embed code for my video which works in WordPress, so what is the difference between using their embed code versus adding the video to the plugin library and doing it that way?
Thanks for your help
Forum: Plugins
In reply to: [Flowplayer HTML5 for WordPress] Add speed controls to Video PlayerHi there, great plugin!
I’m wondering how to actually get these speed buttons installed though.. I don’t really know where to put the PHP file, or where to put the CSS file (or do I just modify my theme’s CSS file and add the code to it?)
Thanks for any help!