n word Most Common WordPress Attacks in 2020 By www.noupe.com Published On :: Mon, 09 Mar 2020 12:04:02 +0000 It’s a widely known fact that WordPress dominates the Content Management System scene. The amount of websites that run on WordPress far outnumber those of its competition, totalling to about a third of all known sites. That kind of ubiquity, of course, comes with severe exposure to cyber threats. WordPress is, unfortunately, the undisputed winner... Full Article Tips Tricks & Tutorials WordPress security WordPress Search
n word How to Create Content Access Levels in WordPress By www.noupe.com Published On :: Tue, 17 Mar 2020 11:35:58 +0000 Content access levels refer to sets of content permission allowing you to decide which content your members could or couldn’t see. It helps deliver premium content to your members and customers easily. You can also ask users to pay and upgrade their member levels to view restricted content. Membership plugins instantly come to mind when... Full Article WordPress content management system content marketing
n word How to Fix the 502 Bad Gateway Error in WordPress By www.elegantthemes.com Published On :: Sat, 09 May 2020 12:00:31 +0000 One of the most frustrating aspects of running a website is having to troubleshoot an error when you don’t know why it’s happening. Some issues, such as the 502 bad gateway error, have many potential causes. This means you may need to try multiple solutions before you land on the right one. In this post […] The post How to Fix the 502 Bad Gateway Error in WordPress appeared first on Elegant Themes Blog. Full Article WordPress 502 bad gateway error
n word How to Fix 503 Service Unavailable Error in WordPress By feedproxy.google.com Published On :: Sat, 23 Sep 2017 04:28:15 +0000 Are you seeing a 503 service unavailable error in WordPress? The problem with the 503 error is that it gives no clues about what’s causing it which makes it extremely frustrating for beginners. In this article, we will show you how to fix the 503… Full Article Security 503 error Fix unavailable wordpress
n word 2017 Best Education WordPress Themes By www.wpthemedesigner.com Published On :: Sun, 29 Jan 2017 22:58:28 +0000 Education WP Education WP is the following era and among the finest training WordPress themes round, containing all of the energy of eLearning WP however with a greater UI/UX. This WordPress educational theme has been developed primarily based on the #1 LMS plugin on the official WordPress Plugins directory LearnPress, which presents you an entire […] The post 2017 Best Education WordPress Themes appeared first on WP Theme Designer. Full Article Blog
n word Common WordPress Errors & How to Fix Them By webdesignerwall.com Published On :: Thu, 28 Feb 2019 11:00:47 +0000 WordPress is an amazingly stable platform thanks to the dedication and talent of the hundreds of professionals contributing to it, and the strict code standards they follow. Even so, the huge variety of themes, plugins and server environments out there make it difficult to guarantee nothing will ever go wrong. This guide will help you […] The post Common WordPress Errors & How to Fix Them appeared first on Web Designer Wall. Full Article Tutorials WordPress
n word How to Create a Full-Screen Welcome Mat Optin Form in WordPress By www.isitwp.com Published On :: Tue, 28 Apr 2020 07:27:00 +0000 Want to create a full-screen optin form in WordPress? Love it or hate it… using a welcome mat is one of the easiest ways to capture your users’ attention. Even big brands like Forbes use a welcome mat to promote their campaigns. In this article, we’ll show you how to properly create a welcome mat […] The post How to Create a Full-Screen Welcome Mat Optin Form in WordPress appeared first on IsItWP - Free WordPress Theme Detector. Full Article WordPress Tutorials create a welcome mat create a welcome mat in wordpress optinmonster welcome mat for users welcome mat in wordpress
n word How to Create a “Google Forms Style” Form in WordPress By www.isitwp.com Published On :: Wed, 29 Apr 2020 10:06:16 +0000 Want to create “Google Forms style” forms for your WordPress website? A lot of publishers choose Google Forms to create a survey because it provides a distraction-free landing page dedicated to the form. If you want to create a distraction-free landing page specifically for your form, but don’t want to use a third-party app, like […] The post How to Create a “Google Forms Style” Form in WordPress appeared first on IsItWP - Free WordPress Theme Detector. Full Article WordPress Tutorials google forms styledform for wp how to create google forms styled form for wordpress using form page addon to create google form styled forms using wpforms to create google form styled forms
n word How to Properly Create a Wholesale Order Form in WordPress By www.isitwp.com Published On :: Thu, 30 Apr 2020 10:01:01 +0000 Want to create a wholesale order form in WordPress? If you’re a wholesaler looking to get online, but don’t want to manage a full-fledged eCommerce store, then you might want to consider adding a simple wholesale order form to your WordPress site. In this article, we’ll show you how to properly create a simple wholesale […] The post How to Properly Create a Wholesale Order Form in WordPress appeared first on IsItWP - Free WordPress Theme Detector. Full Article WordPress Tutorials create a wholesale order form create a wholesale order form in WordPress wholesale order form wholesale order form in WordPress wordpress forms
n word New hooks in WordPress 3.8 By wpengineer.com Published On :: Mon, 16 Dec 2013 10:00:53 +0000 WordPress 3.8 introduced one new action and five new filters: automatic_updates_complete Action triggered after all automatic updates have run. (wp-admin/includes/class-wp-upgrader.php) […] Full Article WordPress Plugins action filter hooks
n word SYSTEMS AND METHODS FOR ASYMMETRICAL FORMATTING OF WORD SPACES ACCORDING TO THE UNCERTAINTY BETWEEN WORDS By www.freepatentsonline.com Published On :: Thu, 29 Jun 2017 08:00:00 EDT Asymmetrical formatting of word spaces according to the uncertainty between words includes an initial filtering process and subsequent text formatting process. An equivocation filter generates a mapping of keys and values (output) from a corpus or word sequence frequency data (input). Text formatting process for asymmetrically adjusts the width of spaces adjacent to keys using the values. The filtering process, which generates a mapping of keys and values can be performed once to analyze a corpus and once generated, the key-value mapping can be used multiple times by a subsequent text processing process. Full Article
n word Rockford Poets Laureate To Champion The Art Of Poetry And Spoken Word By www.northernpublicradio.org Published On :: Fri, 03 Apr 2020 21:49:14 +0000 Rockford is getting not just one, but two poets laureate -- an adult and a youth. The adult poet laureate position will be a two-year position, and probably one year long for the youth. Rockford Area Arts Council (RAAC) Executive Director Mary McNamara Bernsten said the committee is still working that out. But, she said, people may start nominating poets next week. To be qualified for the positions, candidates must have lived in Rockford for at least one year. Adult candidates must be at least 18 years old by Oct. 23, 2020. Youth candidates must be aged 13-17 by that same date. McNamara Bernsten said the poets laureate will appear at public functions. She gave examples like Stroll on State, high school and college graduations, and the swearing in of officers in the police and fire departments. "You may be reading poems at ceremonial events," McNamara Bernsten said. "You could at the unveiling of a new building or bridge. You could be at city council meetings or other public meetings." Full Article
n word Spoken word artist releases live album recorded in Glasgow By www.glasgowtimes.co.uk Published On :: Fri, 17 Apr 2020 12:35:35 +0100 A Glasgow spoken word artist released an album of whole archive, recorded live in Glasgow's Hug and Pint. Full Article
n word Glasgow spoken word artist Kevin P. Gilday announces new album inspired by city By www.glasgowtimes.co.uk Published On :: Fri, 17 Apr 2020 05:00:00 +0100 Kevin P. Gilday & The Glasgow Cross have announced their new album, 'Pure Concrete'. Full Article
n word How The Pandemic Is Making Kids Feel, In Their Own Words By www.npr.org Published On :: Sun, 03 May 2020 08:00:48 -0400 We hear from kids around the country about how the coronavirus pandemic — the lockdown, the school shutdowns, the economic uncertainty — has made them feel. Full Article
n word March 14, 2020: Spoken Word & Run a Marathon By www.cbc.ca Published On :: Fri, 13 Mar 2020 19:01:59 EDT Shane Koyczan and Charlie Demers deliver some poetic justice when they discuss spoken word. Then, Rebecca Kohler and Jacob Samuel run a few things by their audience regarding marathons. Full Article Radio/The Debaters
n word Increase JPEG Quality in WordPress By bavotasan.com Published On :: Thu, 01 Oct 2015 14:37:56 +0000 When you upload an image to WordPress it’s processed and compressed to 90% of its original JPEG quality. This is a default setting that’s in place to automatically optimize every… The post Increase JPEG Quality in WordPress appeared first on bavotasan.com. Full Article Tutorials filter hook filters Images JPG jpg quality WordPress
n word Podcasting on WordPress.com By wordpress.com Published On :: Thu, 26 Jul 2018 15:08:10 +0000 We’ve been updating support for podcasts. Are you ready to try hosting your own? Full Article Features
n word A New Way to Earn Money on WordPress.com By wordpress.com Published On :: Tue, 12 Nov 2019 14:00:00 +0000 With Recurring Payments, your supporters become your sustainers, and a reliable income stream frees you to push your creative boundaries. Full Article Community Earn from your site Features New Features Earn subscriptions
n word What's the word on word balloons? By www.sheldoncomics.com Published On :: Thu, 30 Apr 2020 09:41:52 -0700 EPISODE SUMMARY This week, Dave and Brad drill down deep on a crucial topic in comics — word balloons! Then Dave talks about his recent Kickstarter, and why it didn't fund. Plus... how will the global pandemic affect comic ships, distributors, the USPS and ... webcomics? EPISODE NOTES Today's show is brought to you by Wacom — makers of the incredible Wacom One! This week, Dave and Brad drill down deep on a crucial topic in comics — word balloons! Then Dave talks Full Article Post
n word How to Change the Message Shown Before the Comments Field in WordPress By www.thesitewizard.com Published On :: Fri, 14 Feb 2020 05:44:11 GMT If you run a WordPress blog, and want to customize the message that is shown in the "Leave a Reply" section of your post (where you visitors enter their comments), this article shows you how, using a method that will allow your changes to persist even when your theme files auto-update. Full Article WordPress blogging webmaster child theme
n word Our own WordPress plugin for automated posting campaigns By feedproxy.google.com Published On :: Tue, 17 Dec 2019 00:04:11 +0000 We have developed our own WordPress plugin which will help connect to your blog avoiding the use of XML-RPC. The post Our own WordPress plugin for automated posting campaigns appeared first on RSSground.com. Full Article RSS Ground News
n word Kim Kardashian West endorses spoken word album about Armenian genocide By www.jpost.com Published On :: Sat, 25 Apr 2020 09:26:57 GMT Kardashian is of Armenian heritage, Friday marked the 105th anniversary of the Armenian genocide. Full Article history Kim Kardashian Armenian genocide
n word Education: 59 Million Words 教育: 5千9百万字 By www.bbc.co.uk Published On :: 2009-03-05T11:15:25+00:00 Some people like to read something more unusual than magazines or books. Take Away English reports. Full Article Tae Takeaway English
n word Picture books can be worth a million words By feedproxy.google.com Published On :: Wed, 25 Sep 2019 15:15 EDT A recent article from Edutopia suggested that we’re rushing young children through childhood. Full Article
n word The dynamics of dissent: when actions are louder than words By feedproxy.google.com Published On :: Thu, 02 May 2019 10:01:15 +0000 2 May 2019 , Volume 95, Number 3 In the latest issue a collection of articles explore how international norms are increasingly contested by both state and non-state actors. Read online Anette Stimmer and Lea Wisken A profusion of international norms influences state behaviour. Ambiguities and tensions in the normative framework can give rise to contestation. While research on norm contestation has focused on open debates about norms, we identify a second type of norm contestation where norms are contested through particular forms of implementation. We therefore distinguish between contestation through words and actions, that is, discursive and behavioural contestation. Discursive contestation involves debates about the meaning and/or (relative) importance of norms. Behavioural contestation, by contrast, eschews such debates. Instead, different norm understandings become apparent in the different ways in which actors shape the implementation of norms. Despite being a potentially powerful mechanism of challenging and changing norms, behavioural contestation has fallen outside the purview of the literature in part because it frequently remains below the radar. The two forms of contestation overlap when the practices of behavioural contestation are brought to the attention of and discussed by the international community. Thus, discursive and behavioural contestation are not mutually exclusive but can happen at the same time, sequentially or independently of each other. This introduction to a special section of the May 2019 issue of International Affairs, on ‘The dynamics of dissent’, develops the concept of behavioural contestation and outlines triggers and effects of this hitherto under-researched expression of dissent. Full Article
n word Music in words : Music making with rhymes for early childhood. By www.catalog.slsa.sa.gov.au Published On :: Full Article
n word Dance speaks louder than words By feedproxy.google.com Published On :: Tue, 09 Aug 2016 16:14:58 +0000 OM Arts dancers come to Israel and share their art and testimony with locals. Full Article
n word Is hallelujah a Jewish or Christian word? By feedproxy.google.com Published On :: Thu, 19 Jan 2017 00:52:41 +0000 A Jewish man is surprised to learn that hallelujah is a Hebrew word in the Scriptures. Full Article
n word Loving in word and deed By feedproxy.google.com Published On :: Fri, 01 Dec 2017 16:23:27 +0000 OM first looked to other organisations to provide practical aid but now couples relief and development with its core vision. Full Article
n word “Caesar Rodney in His Own Words” Historical play at the New Castle Court House Museum on Sept. 22, 2019 By news.delaware.gov Published On :: Mon, 09 Sep 2019 15:30:20 +0000 Historical play about the Delaware patriot by museum historic-site interpreter David Price. Full Article Historical and Cultural Affairs New Castle County News activities arts children events family First State National Historical Park historic sites history museums
n word More Than 1.5 Million WordPress Blogs Defaced By packetstormsecurity.com Published On :: Fri, 10 Feb 2017 16:13:31 GMT Full Article headline hacker flaw wordpress
n word WP-VCD Malware Is No. 1 In WordPress Infections Since August By packetstormsecurity.com Published On :: Mon, 11 Nov 2019 15:12:03 GMT Full Article headline malware fraud wordpress
n word Researchers Find Serious Flaws In WordPress Plugins Used On 400k Sites By packetstormsecurity.com Published On :: Fri, 17 Jan 2020 16:27:25 GMT Full Article headline flaw wordpress
n word Critical XSS Vulnerability Patched In WordPress Plugin GDPR Cookie Consent By packetstormsecurity.com Published On :: Thu, 13 Feb 2020 15:20:48 GMT Full Article headline flaw wordpress
n word Trump’s CDC directive isn’t just a war on words. It’s a war on science. By webfeeds.brookings.edu Published On :: Mon, 18 Dec 2017 18:16:10 +0000 When it comes to science policy, we should take President Trump at his word. On Friday, the Trump administration prohibited officials at the Center for Disease Control and Prevention from using seven words and phrases within 2018 budget documents: “vulnerable,” “entitlement,” “diversity,” “transgender,” “fetus,” “evidence-based,” and “science-based”. Public outrage flared up against the Orwellian-style censorship,… Full Article
n word In Her Own Words: Fiona Apple on New Album "Fetch the Bolt Cutters" & Acknowledging Indigenous Lands By www.democracynow.org Published On :: Tue, 28 Apr 2020 08:17:06 -0400 In a broadcast exclusive, world-renowned singer-songwriter Fiona Apple joins Democracy Now! for the hour to discuss her critically acclaimed new album, "Fetch the Bolt Cutters," which was released early amid the pandemic. "I've heard that it's actually making people feel free and happy," Apple says, "and it might be helping people feel alive or feel their anger or feel creative. And that's the best thing that I could hope for." Her record includes an acknowledgment that the album was "Made on unceded Tongva, Mescalero Apache, and Suma territories." We also speak with Native American activist Eryn Wise, an organizer with Seeding Sovereignty, an Indigenous-led collective that launched a rapid response initiative to help Indigenous communities affected by the outbreak. Full Article
n word Friday Polynews Roundup — More on sweet polyam on ABC sitcom, a Christian writer self-trolls, and that damn word "throuple" becomes unstoppable By feedproxy.google.com Published On :: Fri, 31 Jan 2020 18:34:00 +0000 Full Article Friday Polynews Roundup tabloids TV
n word Spoken word: the rise of performance poetry By play.acast.com Published On :: Tue, 03 Jul 2012 23:00:00 GMT Spoken word is a form of poetry usually written to be performed in front of an audience, and often associated with hip hop culture. In recent years its popularity has soared in the UK – and now, as part of the London Literature Festival, the Southbank Centre is hosting the final of “Shake the Dust”, a national poetry slam for teenagers. So, what’s the difference between “page” and “stage” poetry? Does spoken word have a political bent? And can poets hope to change anything? Jan Dalley puts these questions to the poet, rapper and playwright Kate Tempest; poet and artistic director of the “Shake The Dust” Jacob Sam-La Rose; and critic Suzi Feay. Produced by Griselda Murray Brown See acast.com/privacy for privacy and opt-out information. Full Article
n word Rand Paul will offer Syria amendment using Obama¿s own words, saying it would be unconstitutional to launch strikes without congressional backing By www.dailymail.co.uk Published On :: Wed, 04 Sep 2013 20:46:02 GMT Obama said during his first presidential campaign that presidents can't order military strikes unless the U.S. is directly threatened, or Congress declares war. Full Article
n word NICHOLAS PARSONS recounts an uproarious life in his own words By www.dailymail.co.uk Published On :: Sat, 01 Feb 2020 01:54:16 GMT His bitter feud with bullying Clement Freud. How KIenneth Williams saved Just A Minute. And the raging factory foreman who set him on the road to fame. In his own words, Nicholas Parsons Full Article
n word One origin of digital humanities [Electronic book] : Fr Roberto Busa in his own words / Julianne Nyhan, Marco Passarotti, editors. By encore.st-andrews.ac.uk Published On :: Cham : Springer, 2019. Full Article
n word In their own words : understanding Laskar-e-Tayyaba [Electronic book] / C. Christine Fair. By encore.st-andrews.ac.uk Published On :: London : Hurst & Company, 2019. Full Article
n word How to Truncate RSS Feeds in WordPress By www.rss-specifications.com Published On :: Fri, 23 Jan 2015 09:00:00 -0500 Always willing to help out a fellow blogger, I gladly pass along the information. But then gee golly one morning bells and whistles went off! Why don’t I create a tutorial showing others how to truncate their posts? complete article Full Article
n word The Most Wanted Man in the World: Edward Snowden in His Own Words By www.wired.com Published On :: Wed, 13 Aug 2014 12:30:00 +0000 Dispatched to Moscow, famed portrait photographer Platon captured a never-before-seen side of Edward Snowden for WIRED. In this riveting montage, the elusive whistleblower explains the thinking behind his decision to reveal the extent of domestic surveillance being conducted by US intelligence services. Full Article
n word WATCH LIVE - Opening Celebration of “Rosa Parks: In Her Own Words” By www.loc.gov Published On :: Wed, 04 Dec 2019 16:17:03 -0600 Starting at 7 p.m EST., tonight Dec. 4, 2019. A new Library of Congress exhibition,“Rosa Parks: In Her Own Words,” opens December 5. Celebrate Rosa Parks with us at this opening event. Hear from Librarian of Congress Carla Hayden, the Honorable John Lewis & others. WELCOME: Carla Hayden, Librarian of Congress REMARKS: The Honorable John Lewis, Representative from Georgia DISCUSSION: Fred Gray and Jane Gunter, Moderated by Michelle Miller, CBS News The exhibition will immerse visitors in Parks’ words, reflections, handwritten notes and photographs, allowing her to tell her own life story. It is the first exhibition of Rosa Parks’ personal collection. The exhibition offers an intimate view of this seminal figure’s life – beyond her famous refusal to give up her seat to a white man on a city bus – to reveal the real Rosa Parks, a seasoned activist with a spirit forged over decades of challenging inequality and injustice. Learn more about the exhibition https://www.loc.gov/exhibitions/rosa-parks-in-her-own-words/about-this-exhibition/ Click here to watch. Full Article
n word Thirty million words: building a child's brain: tune in, talk more, take turns / Dana Suskind, MD, Beth Suskind, Leslie Lewinter-Suskind By library.mit.edu Published On :: Sun, 10 Dec 2017 06:37:07 EST Hayden Library - QP360.5.S87 2015 Full Article
n word Mamata Banerjee gets apology over obscene Anisur Rahman words in West Bengal Assembly By indianexpress.com Published On :: Tue, 12 Mar 2013 10:56:02 +0000 Full Article DO NOT USE West Bengal India
n word Using HTML5 elements in WordPress post content By nicolasgallagher.com Published On :: Wed, 24 Feb 2010 16:00:00 -0800 Here are two ways to include HTML5 elements in your WordPress post content without WordPress’ wpautop function wrapping them in p tags or littering your code with line breaks. HTML5 has several new elements that you may want to use in your post content to markup document sections, headers, footers, pullquotes, figures, or groups of headings. One way to safely include these elements in your posts is simple; the other way is a bit more complicated. Both ways rely on hand-coding the HTML5 markup in the WordPress editor’s HTML view. If you are adding HTML5 elements to your post content then you should use an HTML5 doctype. Disable wpautop for your theme This is the simple way. Disable the wpautop function so that WordPress makes no attempt to correct your markup and leaves you to hand-code every line of your posts. If you want total control over every line of your HTML then this is the option for you. To disable wpautop entirely add these lines to your theme’s functions.php: remove_filter('the_excerpt', 'wpautop'); remove_filter('the_content', 'wpautop'); However, wpautop is generally quite useful if most of your posts are simple text content and you only occasionally want to include HTML5 elements. Therefore, modifying wpautop to recognise HTML5 elements might be more practical. Modify wpautop to recognise HTML5 elements WordPress’ wpautop is part of the core functions and can be found in this file within your WordPress installation: wp-includes/formatting.php. It controls how and where paragraphs and line breaks are inserted in excerpts and post content. In order to create a modified version of WordPress’ core wpautop function I started off by duplicating it in my theme’s functions.php file. What I’ve experimented with is disabling wpautop and adding a modified copy of it – which includes HTML5 elements in its arrayss – to my theme’s functions.php file. Add the following to your theme’s functions.php file and you’ll be able to use section, article, aside, header, footer, hgroup, figure, details, figcaption, and summary in your post content. (Probably best to try this in a testing environment first!) /* ----------------------------- MODIFIED WPAUTOP - Allow HTML5 block elements in wordpress posts ----------------------------- */ function html5autop($pee, $br = 1) { if ( trim($pee) === '' ) return ''; $pee = $pee . " "; // just to make things a little easier, pad the end $pee = preg_replace('|<br />s*<br />|', " ", $pee); // Space things out a little // *insertion* of section|article|aside|header|footer|hgroup|figure|details|figcaption|summary $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr|fieldset|legend|section|article|aside|header|footer|hgroup|figure|details|figcaption|summary)'; $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', " $1", $pee); $pee = preg_replace('!(</' . $allblocks . '>)!', "$1 ", $pee); $pee = str_replace(array(" ", " "), " ", $pee); // cross-platform newlines if ( strpos($pee, '<object') !== false ) { $pee = preg_replace('|s*<param([^>]*)>s*|', "<param$1>", $pee); // no pee inside object/embed $pee = preg_replace('|s*</embed>s*|', '</embed>', $pee); } $pee = preg_replace("/ +/", " ", $pee); // take care of duplicates // make paragraphs, including one at the end $pees = preg_split('/ s* /', $pee, -1, PREG_SPLIT_NO_EMPTY); $pee = ''; foreach ( $pees as $tinkle ) $pee .= '<p>' . trim($tinkle, " ") . "</p> "; $pee = preg_replace('|<p>s*</p>|', '', $pee); // under certain strange conditions it could create a P of entirely whitespace // *insertion* of section|article|aside $pee = preg_replace('!<p>([^<]+)</(div|address|form|section|article|aside)>!', "<p>$1</p></$2>", $pee); $pee = preg_replace('!<p>s*(</?' . $allblocks . '[^>]*>)s*</p>!', "$1", $pee); // don't pee all over a tag $pee = preg_replace("|<p>(<li.+?)</p>|", "$1", $pee); // problem with nested lists $pee = preg_replace('|<p><blockquote([^>]*)>|i', "<blockquote$1><p>", $pee); $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee); $pee = preg_replace('!<p>s*(</?' . $allblocks . '[^>]*>)!', "$1", $pee); $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)s*</p>!', "$1", $pee); if ($br) { $pee = preg_replace_callback('/<(script|style).*?</\1>/s', create_function('$matches', 'return str_replace(" ", "<WPPreserveNewline />", $matches[0]);'), $pee); $pee = preg_replace('|(?<!<br />)s* |', "<br /> ", $pee); // optionally make line breaks $pee = str_replace('<WPPreserveNewline />', " ", $pee); } $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)s*<br />!', "$1", $pee); // *insertion* of img|figcaption|summary $pee = preg_replace('!<br />(s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol|img|figcaption|summary)[^>]*>)!', '$1', $pee); if (strpos($pee, '<pre') !== false) $pee = preg_replace_callback('!(<pre[^>]*>)(.*?)</pre>!is', 'clean_pre', $pee ); $pee = preg_replace( "| </p>$|", '</p>', $pee ); return $pee; } // remove the original wpautop function remove_filter('the_excerpt', 'wpautop'); remove_filter('the_content', 'wpautop'); // add our new html5autop function add_filter('the_excerpt', 'html5autop'); add_filter('the_content', 'html5autop'); The results are not absolutely perfect but then neither is the original wpautop function. Certain ways of formatting the code will result in unwanted trailing </p> tags or a missing opening <p> tags. For example, to insert a figure with caption into a post you should avoid adding the figcaption on a new line because an image or link appearing before the figcaption will end up with a trailing </p>. <!-- this turns out ok --> <figure> <a href="#"><img src="image.jpg" alt="" /></a><figcaption>A figure caption for your reading pleasure</figcaption> </figure> <!-- this turns out not so ok --> <figure> <a href="#"><img src="image.jpg" alt="" /></a> <figcaption>A figure caption for your reading pleasure</figcaption> </figure> Another example would be when beginning the contents of an aside with a paragraph. You’ll have to leave a blank line between the opening aside tag and the first paragraph. <aside> This content could be a pullquote or information that is tangentially related to the surrounding content. But to get it wrapped in a paragraph you have to leave those blank lines either side of it before the tags. </aside> Room for improvement Obviously there are still a few issues with this because if you format your post content in certain ways then you can end up with invalid HTML, even if it doesn’t actually affect the rendering of the page. But it seems to be pretty close! Leave a comment or email me if you are using this function and find there that are instances where it breaks down. I ran numerous tests and formatting variations to try and iron out as many problems as possible but it’s unlikely that I tried or spotted everything. Hopefully someone with more PHP and WordPress experience will be able to improve upon what I’ve been experimenting with, or find a simpler and more elegant solution that retains the useful wpautop functionality while allowing for the use of HTML5 elements in posts. Please share anything you find! Full Article
n word How to Use Block Variations in WordPress By css-tricks.com Published On :: Wed, 06 May 2020 14:43:36 +0000 WordPress 5.4 was released not so long ago and, along with other improvements and bug fixes, it introduced a feature called Block Variations. I had a chance to use it on one of my recent projects and am so pleasantly surprised with how smart this feature is. I actually think it hasn’t received the attention it deserves, which is why I decided to write this article. What is a Block Variation? Block Variations allow developers to define instances of existing … Read article “How to Use Block Variations in WordPress” The post How to Use Block Variations in WordPress appeared first on CSS-Tricks. Full Article Article gutenberg WordPress WordPress blocks