Kategori: Webb

  • Delete orphan postmeta rows in WordPress

    Running a WordPress site for a long time probably means you’ve tried out lots of different plugins handling your data. This usually means you have a lot orphans in your database. So very sad. Of course you want an orphan free database! But you can easily clean up your database by running a few SQL…

  • Fix cURL request being really slow locally with Valet

    I’m using Valet for running all my local WordPress development installations, which has worked perfectly until updating Valet to PHP 7.4 after the summer vacations. Suddenly all my outgoing cURL requests (through wp_remote_post) was running really slow, always above 5 seconds which was really frustrating to work with. I found out that cURL has problems…

  • Advent of Code meetup at Learning Well

    I went to the Advent of Code meetup at Learning Well’s offices in Nyköping. The meetup was part of the Nyköping Developers meetup group, who meets biweekly to geek and talk developing topics. It’s a really great way to get away from the current projects for a few hours. Advent of Code is a yearly…

  • Website for Svalorna Indien Bangladesh

    I have helped Svalorna Indien Bangladesh with a new website. The site is very modern with advanced content modules and it has an advanced donation functionality. Svalorna will also be selling products on the site with WooCommerce. It’s not a complex solution, but works really well for what they need. Donation solution I found some…

  • Get WordPress posts from all Polylang languages in your blog and post archives

    As usual – clients have different wishes and requests. Sometimes they’re reasonable, and sometimes they’re not. This request was not unreasonable. In a country like Sweden, and especially in Stockholm, where many corporations and companies speak english – there are english-only speaking people. Of course you want your Swedish speaking friends to not miss all…

  • Permanentlänkar för egna kategorier i WordPress

    För ett par dagar sedan skulle jag skapa en posttyp med egna kategorier och etiketter. Dock uppstod det problem när jag ville att taxonomins länkstruktur skulle vara barn till posttypen. http://domän/posttyp/etikett/etikettnamn Efter letande i dokumentation och googlesökande hittade jag ingen lösning. Men av en slump testade jag bara att vid registreringen av taxonomin sätta ett…

  • Omformatera egendefinerade datum i WordPress

    Av olika anledningar ville jag spara datum i ett Eget fält eller Custom field, som det också heter. Men när jag skulle skriva ut datumet i mina mallar uppstod ett problem. Hur skulle jag formatera datumet enligt språket i min WordPressinstallation? Funktionerna the_time() och the_date() tillhör The Loop och visar bara inläggets eller sidans publiceringsdatum.…

  • Välja vart widgets ska synas i WordPress

    Jag fick ett uppdrag att bygga en hemsida åt ett företag med en WordPressinstallation. Det togs fram några olika mallar och några egna widgets, men ett problem uppstod. Kunden ville själva välja vilka sidor deras widgets skulle synas på. Jag började Googla och efter några fraser hittade jag pluginet Widget Logic. Widget Logic gör så…