whipkey
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Block Lab] Block is merged into next block in editorI was able to resolve it. I had to place the previous HTML in the template inside of a container div. After that the container had no height because the child elements were floating, which causes any sibling element to be relative to it at the same position. So I also had to add a clearfix hack to that container:
.mm-exhibition-container:after { content: " "; display: block; clear: both; }Not sure what I was missing, but I have it sorted out now and working with multiple parameters. Thanks!
Sorry. Let’s say my namespace is “myplugin” and my website is “example.com”. This would be an example request:
http://example.com/wp-json/myplugin/v1/getstuff/first-slug/second-slug
In my callback function I expect to be able to access (again referencing the example code from the first post) both arguments like this:
function myFunctionToGetStuff($data) { $firstSlug = $data['slug']; // in the above request would be "first-slug" $secondSlug = $data['secondparam']; //in the above request would be "second-slug" }
Viewing 3 replies - 1 through 3 (of 3 total)