Question here: I've got to build a #WordPress theme. Our in house designer designed it. I already have a multi-site wordpress install that I would like to add this new blog to.
Whilst budget is of course a factor, quality is more imporant to us, as we hope to maintain this in-house going forwards. (We have php devs in house, but noone with real wordpress experience.)
What's the best way of finding a WordPress dev for this sort of one-off project?
The most exciting thing about Siren to me? I’m JUST getting started. Launch will be a solid start, but I have so many ideas on how it can help people develop partnerships online that I’m having trouble prioritizing them.
I am calling Siren an “affiliate plugin” because that’s the easiest way to describe it, it undersells it.
The truth is, Siren is a whole new category unlike anything you’ve ever seen. I’m not competing with other affiliate plugins, I am superseding them.
Salut la communauté. Une petite idée de comment on pourrait récupérer localement le contenu d'un fichier toutes les 10 secondes sur un serveur pour l'afficher sur un site qui tourne sur #Wordpress sur ce même serveur. C'est en gros le nom d'un artiste et d'une chanson diffusée en live sur une radio, et on veut l'afficher sur la page web de la radio.
On peut fait ça en quoi ? En #php ? Avec un plugin ? Et s'il y a 1000 personnes qui accèdent au site en même temps, comment on fait pour éviter de faire 1000 fois la même requête ?
Posiedziałem ostatnio w motywach Full Site Editing dla WordPressa i jestem pod wrażeniem ich wygody i możliwości. Po zorientowaniu się w podstawach można naprawdę sporo tam wyklikać w dość prosty sposób.
Jak sobie przypomnę pierwsze kontakty z WP przed laty, to widzę jak potężnym narzędziem stał się ten silnik.
I just read this article on HTMX being a big deal for WordPress and I just don't see it. To vastly simplify the article, give the code below and using the HTMX JavaScript library:
@stux I’ve been thinking about that. It should be trivial for a CMS like #Wordpress to generate a link preview jpeg, to save the site from getting pointlessly hammered.
So, I built Siren's documentation portal, and the entire site is built using WordPress and the full-site editor. It's my first complete build using FSE, so I wrote up a reflection on it.
Hot on the heels of yesterday's post, I've now made all of this blog available in text-only mode. Simply append .txt to the URl of any page and you'll get back the contents in plain UTF-8 text. No formatting, no images (although you can see the alt text), no nothing! Front page https://shkspr.mobi/blog/.txt This blog […]
Hot on the heels of yesterday's post, I've now made all of this blog available in text-only mode.
Simply append .txt to the URl of any page and you'll get back the contents in plain UTF-8 text. No formatting, no images (although you can see the alt text), no nothing!
This was slightly tricky to get right! While there might be an easier way to do it, here's how I got it to work.
Firstly, when someone requests /whatever.txt, WordPress is going to 404 - because that page doesn't exist. So, my theme's functions.php, detects any URls which end in .txt and redirects it to a different template.
// Theme Switcheradd_filter( "template_include", "custom_theme_switch" );function custom_theme_switch( $template ) { // What was requested? $requested_url = $_SERVER["REQUEST_URI"]; // Check if the URL ends with .txt if ( substr( $requested_url, -4 ) === ".txt") { // Get the path to the custom template $custom_template = get_template_directory() . "/templates/txt-template.php"; // Check if the custom template exists if ( file_exists( $custom_template ) ) { return $custom_template; } } // Return the default template return $template;}
The txt-template.php file is more complex. It takes the requested URl, strips off the .txt, matches it against the WordPress rewrite rules, and then constructs the WP_Query which would have been run if the .txt wasn't there.
// Run the query for the URl requested$requested_url = $_SERVER['REQUEST_URI']; // This will be /whatever$blog_details = wp_parse_url( home_url() ); // Get the blog's domain to construct a full URl$query = get_query_for_url( $blog_details["scheme"] . "://" . $blog_details["host"] . substr( $requested_url, 0, -4 ));function get_query_for_url( $url ) { // Get all the rewrite rules global $wp_rewrite; // Get the WordPress site URL path $site_path = parse_url( get_site_url(), PHP_URL_PATH ) . "/"; // Parse the requested URL $url_parts = parse_url( $url ); // Remove the domain and site path from the URL // For example, change `https://example.com/blog/2024/04/test` to just `2024/04/test` $url_path = isset( $url_parts['path'] ) ? str_replace( $site_path, '', $url_parts['path'] ) : ''; // Match the URL against WordPress rewrite rules $rewrite_rules = $wp_rewrite->wp_rewrite_rules(); $matched_rule = false; foreach ( $rewrite_rules as $pattern => $query ) { if ( preg_match( "#^$pattern#", $url_path, $matches ) ) { $matched_rule = $query; break; } } // Replace each occurrence of $matches[N] with the corresponding value foreach ( $matches as $key => $value ) { $matched_rule = str_replace( "$matches[{$key}]", $value, $matched_rule ); } // Turn the query string into a WordPress query $query_params = array(); parse_str( parse_url( $matched_rule, PHP_URL_QUERY), $query_params ); // Construct a new WP_Query object using the extracted query parameters $query = new WP_Query($query_params); // Return the result of the query return $query;}
For my #blog, I also observed this problem. This is not very disturbing, but after publishing information about the new post, the site temporarily stops working and throws the error of exceeding the #MySQL query limit, because the blog is based, of course, on #Wordpress.
via #unknowNews https://news.itsfoss.com/mastodon-link-problem/
Möchte in #WordPress mehr Fotos posten. Dafür brauche ich ein wenig mehr Übersicht im Media Manager. Ein Fotoalbum Plugin bräuchte es nicht. So eine Art Dateimanager Plugin wie https://devowl.io/wordpress-real-media-library wäre interessant. Habt ihr Tipps, was sinnvoll wäre?
This is a silly idea. But it works. I saw Dan Q wondering about plaintext WordPress themes - so I made one. This is what this blog looks like using it: The Code You only need two files. An index.php and a style.css. The CSS file can be empty, but it needs to exist - […]