Not sure if it is causing Dreamweaver to flag an error (try running it?), but on the second from last line you want to be using get_the_title(). This returns the posts’ title, whereas the_title() will echo it.
echo '<a href="https://wordpress.stackexchange.com/questions/44471/.the_permalink().">'.get_the_title().'</a><br />';
Related Posts:
- Only get_posts of certain post formats
- Is the first item returned by get_posts() always the latest post?
- Why can I not use setup_postdata($post) in the sidebar?
- How to retrieve a value from get_posts()? [closed]
- Getting movie and serial on actor page
- how to display active, upcoming and past event with featured listing with pagination
- Display 4 chronological posts starting with a random post
- How do I output a database option that is an array into a get_posts array?
- Advanced Custom Fields: Post Object – Not returning data [closed]
- Why not yield/iterable in posts interface?
- Logged in user ID as post ID
- How do I exclude recent post from recent post php widget
- Open post-content in archive page in a Modal box with bootstrap
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- Query if audio attachment AND/OR custom field
- How do I get post attachments in menu_order in WordPress?
- How i can get post data from database when i am getting post id from url in wordpress
- How to retrive the text : No movie by this actor
- How to get image from url from the database?
- Unable to render custom field after attempt to generate a list of recent post in page template
- Add class to every other posts using get_posts
- search.php to search only the post title
- How to get woocommerce orders with get_posts method in a shortcode
- get value from get_post_meta then reuse it in another get_post_meta
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- How can I render more than multiple posts on template-parts with post formats
- How to display post_content from database in different on template page?
- Displaying POST content with HTML tags and all
- Create a hierarchical loop at predefined markup requirements
- offset and max_num_pages in pagination gallery
- Even with PHP plugin get_posts not working in widget area
- Sort posts by title, sort array by largest number [duplicate]
- Transient Loop Not working as expected
- show/hide attachments
- Find owner of coupon
- Link on post title only if post have content
- Category Attachment Pagination 404 Error on 2nd Page
- How do I make a redirect in PHP?
- Display all meta for a post?
- How to include external page to wordpress page?
- Facebook Comment Count
- How to overwrite youtube embed?
- How to resize image on client-side before upload?
- Filter the blog title displayed in the header
- Print html when custom field has value inside while loop
- Foreach insert query the best way
- Generating add_settings_section() calls dynamically
- How to generate page content from database the right way?
- Register non hierarchical taxonomy and the show meta box in the post type
- Admin username and password
- dynamic php inside wordpress page
- Converting MYSQL to WordPress $WPDB
- Random Default Avatar Function
- Get Admin Email Address From External PHP page
- Redirect to another page after submission using wp_mail
- Loop with slider (slider not loading)
- Get posts inside Get terms problem
- wordpress media library new uploads don’t write to database
- Add data attribute to each li in menu
- Was told to change the .htacess file form .html to .php so this would work properly
- How to bypass maintenance mode with external cron?
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- Security for data obtained from the database
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Royalty-Free Sliders used in theme development
- Conditional using get_the_ID() not working [closed]
- How to fix this PHP warning in WP-Admin after upgrading to 3.1.2?
- PHP Notice: Undefined offset: -1 – Navigation Previous/Next
- Where is the PHP code generating an element?
- WordPress and PHP Version Upgrade issue [closed]
- Images Uploaded saving onto older/previous year folders
- WordPress 4.2.3 on Windows Server 2008 R2 Creating Files as read only
- WooCommerce “Checkout Now” button [closed]
- Finding and removing duplicates within WP Arrays
- Hard-coding a shortcode as the last menu item in primary navigation?
- Is it possible to access admin-ajax.php using PHP?
- Loading Elementor templates in a Bootstrap modal on button clicking
- How to check if is page template inside functions.php
- How to hide a div section when user is logged in, in single product woocommerce
- display custom plugin view on front end inside template body
- How do I get data from my database into my Custom Export Field
- Fix hover images blink
- How to auto-generate random numbers in username?
- How to add a custom class for iframe by embed_oembed_html
- Generate random access token to a post page
- remove public static function wp_link_dialog()
- Find the method which AJAX GET calls
- Widget header unique classes
- Trouble using wordpress functions in a pop-up modal form
- How to get a database field value from a WordPress table? [closed]
- Divi – add title to mobile menu button
- Woocommerce – Include custom user meta in order ‘filter by registered customer’ Ajax search
- Slick slider not working on wordpress
- Increase Upload Size with htaccess | MAMP
- How to get ACF field to show up on all posts on front end?
- Custom post type removing /page/2/ from URL when trying to access it
- Capture the Selected Radio Button Value between two files in wordpress theme
- Prevent publishing of uncategorized posts
- Nonce code vulnerability
- How can I save the HTML output of a WP_Query function as a variable?