Display one random image from Media Library

I can’t comment due to lack of reputation, so I’ll address the issue rudtek mentioned. Personally, I never came across a host that disables PHP’s rand() function, but in case there is such a lousy host, you can opt for a more efficient way of doing things. What you can do is to get all … Read more

Change normal grids to masonry grids

This is not really a WordPress issue, you will have to play around with the CSS to get the layout you desire, if you take a look at isotope.js library you will see that hey have documentation on how to display Masonry grid https://isotope.metafizzy.co/layout-modes/masonry.html , and if that doesn’t fit your needs you can learn … Read more

front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL

So here’s the way I would approach this. I’d create a custom page in WP called something like ‘Employee Order Screen’ or ‘Company Name Order Manager’. Something like that. Let the users/employees feel like it’s custom or proprietary. Then you want to create a template in either your theme/child theme or in a custom plugin … Read more

Change hover to onclick on menu

Just found how to do it. The solution is very simple, it all was just about playing around the “slideToggle” function on the same object I was working on in the main question. Only one problem won’t disappear, if I click once, and then mouseout, the submenu will be open-able via hover. You’re forced to … Read more

How To Get HTML Eelement From Another Page

You’re talking about scraping, which is generally an unreliable method of getting data, especially if you don’t control the other page. However, in PHP, once you retrieve the download page with something like wp_remote_get, you can use a regular expression to extract the pieces you need with preg_match_all. $response = wp_remote_get( ‘domain.com/download-page/’ ); $page = … Read more