It just wasn’t concatenated correctly (i.e. misuse of single/double quotes). This’ll work:
$output .= '<div class="colmsg"><label for="smcf-message">*' . __("Message", "smcf") . ': </label>
<select name="">
<option>Post1</option>
<option>Post2</option>
<option>Post1</option></select></div><br/>';
Related Posts:
- Contact form 7 post loop [closed]
- How do I check if I linked to a post before I delete it?
- Accessing the post content with WP_Query
- disable password protected page for logged users
- How do I use inline SVG in WordPress
- Add a special filter link to All Posts in admin
- duplicate posts when trying to update a post using the wp_insert_post.
- “Uncaught SyntaxError: Unexpected token
- Displaying Page Title on index.php
- Pull posts from another wordpress install on same server
- How can I get all posts data from within a paginated search result?
- Create pretty permalink for a post knowing the permalink structure
- Syndicated Posts when Updated Lose HTML tags
- How to insert current date/time in the content of a post?
- How to automate filing a form as a user
- I want to query posts in monthly basis
- jQuery inluclude still seems ncessary for script to work within post
- White Blank Page when Updating and Publishing Page/Post
- Full Width Main Post
- Posts vs. Pages
- Limiting the number of posts in WP_Query leads to unexpected result
- how to set beforsend option in wordpress ajax methods
- Plain permalinks not working!
- Guest Author – How to display posts on /author/ archive page
- Why is querying posts messing up my pages?
- How can I find out what items a user has purchased? [closed]
- Nothing Found error when creating new posts – how to correct this?
- Redirection not working in this front end post submission form?
- Add Word Limit to Posts
- WordPress Loop – Next 3 Posts
- Display multiple custom taxonomy values on single custom post types page?
- Underscores Theme Unit Testing – Catching Untitled Posts
- How to do set post permalinks using 6 digit random unique function?
- Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
- Pulling in post category and children within category
- Is Hfeed class for all pages needed
- get query() without post content?
- Issue where WP Featured Image will not display
- Custom order for Mysql array
- posts_per_page option limits the number of Gallery items
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- insert a warning message into post-new.php
- WP text editor change html markup
- how can i allow users to view their own pending posts in a front-end page
- How to make different custom post layouts?
- Modifying the following code to displaying the title and the content of static page Posts page?
- Saving Post Data in Another Database
- How can I tell if a post has been published at least once?
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Add simple field column to the posts screen
- WP_Query custom field pass the post id
- Get the post id from a plugin
- Date is wrong on ‘all posts’ page
- How do I disable the “by author” hyperlink on posts?
- Making posts permalinks consistent numbers
- Jumbled writing under a post
- Moved to a new server, backup was a day old and missing 3 posts, anyway to recover them from old host?
- Hook save_post_cpt not triggered when custom fields are modified
- Set Default Post as Parent Child (Nested) Relation
- Featured Images most often doesnt appear
- Create a List of Widgets, where each widget holds three attributes
- Why is WordPress showing a blank excerpt for just one of my posts?
- Is there a way to know when a page has been updated and do some action only once?
- Get category slug of the Parent category of a Product
- How to automate creating pages on a hosted wordpress from a local set of folders?
- How to limit wordpress the_excerpt() dynamically
- Reuse old post ID for new post after deleting post
- Contact Form 7 Shortcode not recognized inside another shortcode
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- WP posts using index.php instead of single.php
- Display simple html code in post
- How to display particular set of wordpress post on a webpage?
- Excluding tag Link from html tags in Post content
- Allow users to post their videos to my wordpress website?
- Add in the url attachment loop the wp_link_pages of the post
- Couldn’t view individual post that were in my website
- Add Categories To Custom Post
- Get the category of post
- Display Posts by Categories
- update post category in a new table on frequent change of category
- Edit Posts Page but not category specific pages?
- How can add metabox for post of specific category before save post and after save post [duplicate]
- Problem with jQuery in post body?
- Custom template for different post types
- Posts page template: How can I edit the markup for this?
- Pagination working locally but not on live site
- prevent same wordpress post title
- Remove duplicated posts in the loop if post has more than one category
- Should new posts already have tags?
- Get image paths from RSS feeds
- How can to use the players from the Media Widgets in the body of a post to play audio and video files
- How can I display these posts in ascending order?
- Is there any point to using wp_unique_post_slug?
- Display posts with id equal to relationship value
- Imported Posts missing summary text on staging site
- Read more opens attachment
- How to show video from post on the all posts page?
- Show a page counter for pagination
- WP_Query post_tilte search in posts table