Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 7022
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/jonasnordstrom.se/wp/wp-includes/functions.php on line 2162
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 2147483648 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 1116
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Implicit conversion from float 4294967295 to int loses precision in /var/www/jonasnordstrom.se/wp/wp-includes/pomo/mo.php on line 208
Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Cookie/Jar.php on line 63
Deprecated: Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Cookie/Jar.php on line 73
Deprecated: Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Cookie/Jar.php on line 89
Deprecated: Return type of Requests_Cookie_Jar::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Cookie/Jar.php on line 102
Deprecated: Return type of Requests_Cookie_Jar::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Cookie/Jar.php on line 111
Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
Deprecated: Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/jonasnordstrom.se/wp/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91 wordpress – Jonas Nordström
A conceptual example of how you could add css or javascript to your ”edit post” page in the WordPress dashboard.
I included an example of how you can ”send parameters” to the javascript file.
Nya kuraterade länkar. Jag letar upp och sorterar högt och lågt, ofta med fokus på teknik, media, WordPress, musik och annat som ligger mig varmt om hjärtat.
yoast.com – BlogPress SEO: solved – Yoast
– Så om du inte gillar ett plugin som inte hostas på wordpress.org, registrera en tom plugin med samma namn på wordpress.org med ett högre versionsnummer och folk kommer få uppmaningen att uppdateras pluggen, och du har då highjackat den. Jag är inte säker på att det här är så bra.
The Official Google Blog – Beyond Instant results: Instant Previews
– Kalla mig motvalls kärring, men jag gillar inte googles senaste uppdateringar av sökresultatsidorna. Det händer för mycket (hover-popups måste dö) och det finns för många filterfunktioner och valmöjligheter. Det var bättre förr. När man sökte på något och google la precis den sidan jag sökte överst. Och det gick på 12 mikrosekuner.
Schemalagda tweets, det finns ett problem med det, och det är uppenbart när man pratar om twitter som en del av realtidswebben. Här och nu och på riktigt, annars fake.
På sajten http://topp30.se listar jag och en del vänner och bekanta varje år våra favoritlåtar. Vi har sysslat med detta något nördiga listande i drygt tio år. Förra året började några av oss att bifoga listan i spotify-form, och inte bara text. I år har nästan alla 20 en spotifylista för sin årslista.
Länken till spotifylistan finns i varje inlägg som en vanlig textlänk, men den ligger ofta på olika ställen, har olika ankartext och kan vara lite svår att hitta. Därför la jag till en genererad spotifylänk som alltid hamnar på samma ställe, uppe till höger i varje inlägg. Lättare att hitta, mer konsekvent.
Detta kan man åstadkomma genom att lägga spotifylänken som ett ”eget fält”, ändra i varje template-fil på rätt ställe (index.php/archive.php/search.php etc.) och där läsa in spotify-fältet och visa länken, men det blir opraktiskt att underhålla, lätt att göra fel och lite fult.
Steg 3:
Lägg till ett filter, som anropar spotify_content varje gång WordPress-funktionen the_content anropas. Det är the_content som visar texten i ett blogginlägg så den kommer definitivt att anropas från exempelvis single.php och index.php (det finns undantag, se längre ner)
add_filter( 'the_content', 'spotify_content' );
Steg 4:
Lägg till en css-klass i style.css som lägger din div som du vill ha den. Den allra enklaste varianten blir så här:
.spotify-link {
float: right;
}
Och det var allt. Resultatet, med en klickbar spotify-logga för varje spotifierat inlägg blir så här: topp30.se med automatisk spotifylänk
Observera att ibland används the_excerpt stället för the_content i mallarna. Det är när man bara vill visa ett utdrag ur inläggen istället för hela texten.
Om man vill ha spotify-länken även i dessa mallar så är det inte svårare än att man lägger in ett filter för the_excerpt också: