How about:
echo '<ul>';
$sn_count = 1;
foreach($urls as $url){
echo '<li><span class="serial-number">'.$sn_count.'</span> '.$url .'</li>';
$sn_count++;
}
echo '</ul>';
You can then style your serial numbers with the serial-number
class.
Related Posts:
- Get the ID of the latest post
- Do_Shortcode not working for Embed
- tag.php doesn’t work with tags on a custom post type post?
- Custom post type permalink: only use %post_id% and remove %postname%
- List most recent image uploads, but only for specific custom post type
- Fetching private posts or custom post types via WP-API with basic authentication
- If featured image doesn’t exist, show post content
- Getting a div content of a post in wordpress?
- Order Posts by Taxonomy and Meta Value
- Rename a current used post type
- Include custom post types in categories widget
- Group Custom post type in a page by its taxomony tag
- Getting taxonomy terms used by custom post type
- Custom field losing p tags on display
- How do I echo the post type?
- Categories not working as expected with custom post type
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Calculating Bayesian average for custom post type
- How to customize admin posts based on the user who is logged in
- Custom post type – how can I make it a sub-url of another page?
- Merge multiple custom post types in a single archive template
- Problem adding column to WC Subscription [closed]
- apply filters only to specific post listing without check the url parameters
- register_post_type exclude_from_search argument not working
- query posts and custom post type with meta key
- URI returns a post when it should return a 404
- Twenty Fifteen: Adjacent posts by menu_order [duplicate]
- Displaying a form for filtering in custom post type listing
- Change meta box when the page’s template is changed
- Custom Post Type Loop throws 500 error when used in widget
- How can I update the permalink everywhere for a custom post type?
- custom admin screen or setting screen for a custom post type [duplicate]
- Define new user capability for custom post types?
- Featured image overlay when changing post status
- limit value taxonomy based on previous taxonomy value wordpress
- pre_get_posts for custom page builder meta box
- Pre-styling post content to display in lightbox
- How to assign permissions for a CPT to a user
- Using POST method in meta box, no results
- Global $post shows null in some of my custom post types archive pages
- 404 in custom post type feed with mistake permalink
- Get Post Types in admin
- Custom post type editor uses old tinyMCE
- Create metaboxes based on custom post type
- custom post type and custom taxonomy
- Custom post type as child of page
- Conditional Tags for specific category of custom posts
- populate array with posts
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- Get custom post type categories to show up in menus
- Custom Type add Transitions
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- get_post_permalink() and custom permalink rewriting
- Custom post type name and assigning custom taxonomy
- Building a Portfolio and need some direction
- Custom post type – how to name file?
- HM CMB: Post Select Field for CPT ID
- Why is my custom post query shortcode only showing 1 post?
- WordPress custom taxonomy page
- Pages not appearing?
- How great custom post type can be?
- How do I disable the built-in editor and automatically configure the properties of new pages?
- WP_Insert_Post creating duplicate posts when logged in
- count & sum the value of custom field of the author post in dynamic posts
- Set priority to permalinks
- Same custom post type with different ACF
- How to list posts by terms
- Move to trash custom post type post after ACF Date Picker date is older than today
- Display custom posts, ordered by most commented, without duplicates
- Create Post Types from a XML url (Real Estate website)
- Custom Post type doesn’t appear in search results
- Issue with CPT posts within WP REST API showing as []
- How to display all terms from all taxonomies in post, but separately for each taxonomy?
- New entries to custom post type produce 404 on single view
- WordPress post type for single page (without posts list)
- Enforce all custom posts have specific custom fields
- creating a custom post template
- Showing custom post user wise with different color in wordpress
- How to link 2 different post types programatically
- how to get the checkboxes check in custom plugin
- Test date object against previous date in loop
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Generating List of Tags from Custom Post Type
- Post to type posts in subdirectory. [closed]
- User submitted content
- send email to all registered users when post expires
- How would I get a list of posts from a custom post type
- Add number in increment of one to DIV ID
- Make title field multiline in the add new custom post page?
- WordPress and Unity high scores table
- Previous and Next posts
- Is it possible to have full category-parent/post-name with custom post types? [duplicate]
- Sharing a custom taxonomy – No posts?
- Post_type doesn’t work for widgets?
- why does my post loop break the page?
- Adding custom theme template to custom post type [duplicate]
- Can I have a specific template for products even if they are standard posts and not CPT?
- How do I add the “orange counter” next to a Custom Post Type?
- Custom slugs with dates & IDs on Custom Post Type