This isn’t a WP question but you would do the following:
if ($count % 3 != 0) {
// code
}
Taken from here
Related Posts:
- How to fix “Headers already sent” error in PHP
- What are PHP extensions and libraries WP needs and/or uses?
- How to check if feed URL was requested?
- the_author_meta() vs get_the_author_meta()
- problem with ajax and the path to the php page
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Targeting single page with JS
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Include a Gutenberg Block in a PHP file
- do not show web page section when using advanced custom fields pro
- How to slow down server response
- Click loads template via ajax
- Why isn’t the canonical link element used for all pages?
- Featured image fallback link to permalink
- Facebook “like” open graph meta in header.php
- Working with a modified WordPress & Theme and updating WordPress
- Get all user meta by meta key instead of ID
- Automatically add custom CSS to new posts using a category template
- how can i show only the parents in owl-carousel?
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Use menu link or onClick to set a variable
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Store a default value for a transient on plugin activation
- Change “add to cart” button color based on Woocommerce product category [closed]
- Let Users Choose Post Categories
- Create highly customized submenu (possibly using wp_list_pages)
- $wpdb->wp_users returning empty value for
- WordPress Custom field Colors
- Change WordPress Upload Folder using wp handle upload
- How to correctly add Javascript to this PHP ‘Page Not Found’ Page?
- Warning message (re. php) on the blog page
- List taxonomy term slugs within shortcode (do_shortcode)
- get taxonomy thumbnail and use it as a variable in code
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- Why doesn’t add_filter have the option to include a callback for each run?
- Sending a custom form data in email through WP Mail Function
- How to include custom code on a page that’s set to act as homepage?
- Force Users To Relogin
- Security updates to 3.3.2
- Fixing Deprecated: get_the_author_lastname
- How to add PHP code in functions.php wordpress
- wordpress frontend editor to add extra css to website
- Apache HTTP Server stops working for only a certain local website
- If user is logged in not working
- PHP: How to access db the right way in plugin?
- Compare current post Category in select menu
- Custom forms with HTML
- Woocommerce. Get a list of products in the current category on the archive page and product page
- Foreach loop is unexpectedly outputting an extra empty a tag
- get_terms with specific id order
- how to changes mobile menu toggle breakpoint in WordPress
- Get page permalink in contact form
- Get quantity of children in all parents and add quanity to all UL class names
- How to display already created menus via php?
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- What are the advantages/disadvantages of ways to use php template files?
- remove_action from parent theme using child theme functions.php
- Creating a POP Alert
- Show content before more block
- WordPress Plugin Development – get_option error
- how to add new PHP page in WordPress plugin
- How can I get my WordPress plugin to receive data and relay it in an ajax/php request to a remote server that requires authentication?
- Time out opening second page in same browser with long running page load
- Possible to edit custom date field and display?
- Issue with json decode in WordPress – value is not returning consistently
- Pagination 404 error(I have refreshed the permalinks and tried several previous options)
- How to grab data from input and store it into custom table in database?
- Input field duplicates on form submit by jQuery
- How do I fix this error
- Can the $wbdb function be used in wp w/o also loading the wp_load.php
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- WooCommerce remove_action and add_action [closed]
- Get a list of tags present in a paged front page
- Adding a number to a date
- Get posts associated with media attachment
- the_post_thumbnail(); only works with fullsize images
- I want my wordpress loop to only display posts of the standard format
- Overwriting a Shortcode
- WordPress changing single quotes to double quotes in title and content
- Easier URL to an image
- MySQL database migration to WordPress
- Change order that the menu is generated with wp_list_pages
- Is this WordPress code causing page weirdness? Can’t scroll to bottom
- Search result page – display values from the result’s metaboxes
- Using variables as href in anchor tags (PHP) [closed]
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) [closed]
- Code working in functions.php but not pluign for gavity forms
- Different behaviour between “include_once” and directly echoing out html code?
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- REST API custom endpoints for metaboxes
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only
- generate excerpt from the part of big text dump that contains keyword
- How to sort search result by post_title, then by post_content
- Custom Admin Menu Report for Specific User ID
- how can i link threejs in my functions.php file in understrap theme