How to use printf to output two links?

This should do it: $text = __( ‘<strong><a href=”https://wordpress.stackexchange.com/questions/268780/%1$s”>login</a> or <a href=”https://wordpress.stackexchange.com/questions/268780/%2$s”>register</a> to be able to add new adverts</strong>’, ‘adverts’ ); printf( ‘<div>’ . $text . ‘</div>’, wp_login_url(), wp_registration_url());

Make plugin php file called directly aware of WordPress?

You can’t load plugin files directly, you need to target either a front-end or admin URL that bootstraps WordPress. An easy way to do this is the admin_post_(action) action: add_action( ‘admin_post_add_foobar’, ‘prefix_admin_add_foobar’ ); function prefix_admin_add_foobar() { // your code here } You can then POST your data to admin_url( ‘admin-post.php’ ) and set action to … Read more

WP RSS Aggregator plugins breaks after switch to HTTPS

This sounds like your local DNS settings resolve your domain name to the server instead of going properly to the proxy. hmm, reading the question again, if the proxy is on the same machine, you might have some firewall misconfiguration. Best long term solution is just not to rely on the wordpress cron and replace … Read more

Admin page button create new

Its just HTML code. Follow this structure. <div class=”wrap”> <h1> PAGE TITLE GOES HERE <a href=”” class=”page-title-action”> BUTTON TEXT GOES HERE </a> </h1>

Widget for specific category

I’d start with a basic widget tutorial. From there, I’d add a dropdown on the widget back end that lists out all the categories, so you can select from existing categories. Then on the widget front end, I’d do a WP_Query to pull a specific number of posts from that category. With posts selected, do … Read more