You use the function the_exerpt()
, replace this with get_the_excerpt()
.
I don’t know for sure, but you might need to use apply_filters('the_excerpt', get_the_excerpt())
to maintain the formatting in wich the_excerpt()
is returned.
Try to use get_comment_reply_link
instead of comments_popup_link
.
both functions the_excerpt()
and comment_popup_link()
won’t return values, but print it, wich cause te content to be displayed at the top op the page.
Related Posts:
- How do I use Shortcodes inside of HTML tags?
- WordPress Shortcode and Dynamic CSS
- Placing raw HTML inside a WordPress shortcode
- Shortcode content output but not in correct place
- How create a Shortcode with hover and complex options
- Using ob_start and ob_get_clean with wordpress shortcode
- Handling PHP/HTML inside the output of a shortcode function
- Calling PHP Titles inside Javascript Markup
- Shortcode in Shortcode/HTML Graphics and Pictures
- couldnt show short code atts in category
- How can I edit the final HTML structure of the whole web page
- How to return html as a string from php for WordPress
- How can I create a shortcode from an html and php code written together
- Show contact 7 form in popup
- Is there a better way to output HTML as a shortcode?
- How to manually fix the WordPress gallery code using PHP in functions.php?
- Encode text string being appended as query to URL [closed]
- add_filter the_content str_replace after shortcode
- WordPress Ajax always returns a 404 error
- How to return a string that has a variable inside in a shortcode?
- Passing a shortcode attribute to a sub-function
- How to use SRCSET with get_the_post_thumbnail()?
- post meta value as shortcode parameter
- How to protect own PHP code from WordPress updates
- How to add Shortcode (font awesome) in widget title?
- WordPress Wysiwyg Content not being displayed
- Javascript code inside “” in core WordPress files .php
- How do I add HTML to a PHP function [closed]
- Placing the_content inside shortcode not working
- is_page “range” for if statement?
- How can I generate random numbers inside my shortcodes on each implementation?
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- How to get the POST TITLE using the POST ID?
- Load a page into a div with Ajax
- Different loop output every x posts in custom post type
- Converting HTML Template to WordPress Theme
- Showing a different gallery in a seperate post
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- How to remove ?wp-mce-4103-20162941
- Displaying recent posts on static page with template-part via shortcode
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Noscript not working as it should in wordpress site
- List taxonomy term slugs within shortcode (do_shortcode)
- Add data-id attribute to child page links
- Prevent redirect to wp-login.php
- Shortcode to pull posts
- PHP code inside Shortcode
- Help Fallback (thumbnail)
- How to return a string that has a jQuery and Ajax inside in a shortcode?
- How to use the checked() function to check for a non-empty var
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- Change Spaces to Dashes?
- Displaying images outside the content
- Updating Metadata with Shortcode
- WordPress User Meta value variable into Google Gauge Chart
- Create shortcode for metabox gallery
- PHP function for horizontal Woocommerce thumbnails and badges
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- separate list of programs in html/javascript coming from php
- Drop down question
- Install functionality for push notifications but WP-Theme has oddly-named, hidden source files [closed]
- Advanced Custom Forms PHP formatting for do_shortcode
- overwrite wordpress gallery with custom gallery shortcode
- how to add functions to my function.php using a child theme?
- CPT in a shortcode
- WooCommerce multiple custom fields code
- How to override html codes in wordpress?
- Open/closed function [closed]
- What is wrong with this shortcode? to include external php file in WordPress posts
- Target a specific container to style on WordPress storefront theme
- Need to Echo A Url path to show on a wordpress page
- Create html tree sitemap
- wordpress form action page not found
- WordPress Shortcode based on other shortcode
- Pass form attributes to another php template in wordpress
- Custom HTML form using PHP – help with ajax/username validation
- Wrapping shortcode content in a span or link
- How to create a php page to collect information from a html page
- Can’t make product images clickable
- I need help implement a Javascript code into the PHP file
- WooCommerce – Print Processing orders [closed]
- Formatting Shortcode to Display in Visual Mode
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- Category – “No content found”
- WordPress – Image href for home menu nav not working
- Overwriting a Shortcode
- Run php function after html click after page refresh
- Get all the contents of taxonomy and sort by term
- Gallery requires a featured image but does not show it in posts/pages
- How do I modify the with wp_nav_menu()
- A next page function with shortcode?
- using a shortcode in a hyperlink
- Parse error: syntax error, unexpected ‘}’ in
- Display total count of products in orders of a specific order status
- Load wp_editor on button click
- Redirect loop upon installation of my plugin
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- How to modify default tags in wp_head()