So long as you’re in the loop, you can just use the standard template tags:
<script type="text/javascript" charset="utfÂ8">
initFrame({
app_id: "",
object_id: <?php the_ID() ?>,
object_title: "<?php the_title_attribute() ?>",
object_content: '<?php echo wp_trim_words( strip_shortcodes( striptags( get_the_content() ) ), 45 ) ?>',
object_url: "<?php the_permalink() ?>",
arguments_container: "comment-naqeshny",
width: 610
});
</script>
Related Posts:
- Is it possible to use a single custom post as the site front page
- Listing a post’s categories and subcategories
- Get taxonomy name of current post
- Single post comment template not working
- How do I show google ads between post content?
- Add inline style to get_the_category_list
- get_terms parent for current product only
- Help with figuring out the future post workaround
- How to check the terms in single custom post type template
- Disable single view for specific post category
- How do I display tags for a custom post type single page?
- Only nextpagelink on wp_link_pages
- Display a post map on a blank/new page
- How To Pass Current Post Type ID from Single Template To Custom Page Template
- Is it possible to create rel=”noindex, nofollow” for a single post if contain bad keywords?
- Setup template_redirect using has_term when NO term assigned
- Custom seperate Single.php
- Set a cookie only in single posts
- Custom post type not respecting template hierarchy
- diffrent style for post single page
- get_term_link is Ending to single.php
- I’m having a problem viewing the Youtube video
- Use different «Single.php» for custom categories
- force https except one page/post
- Single custom post type template not working (single-custom_post_template.php) not working
- Single.php category entries not showing right colours
- Link from archive-page.php to single-page.php
- How to check if a post is in categories x,y,z inludint their subcategories
- Changing the display of the themename_posted_on() function
- How to Highlight current category on category and single page template?
- Exclude single page from function
- WordPress, alternative single post template
- get full real path of thumbnail post img wordpress
- how to loop through this in blog single?
- get_the_terms child terms for current post/custom post only
- Modify post template on Divi Theme
- I want to signin from first wordpress site to other wordpress website without registration..without using network mode
- Try to showing product file size on product single page
- Improve related posts
- Get active term on single (CPT) page
- Having single posts appear under the blog homepage and highlight menu items properly?
- Single.php loading fully on localhost but not on server
- explain why is_single doesn’t work
- How to disable the single view for a custom post type?
- Is There a Difference Between Taxonomies and Categories?
- How to show a hierarchical terms list?
- Show all terms of a custom taxonomy?
- How to get a taxonomy term name by the slug?
- Explanation of update_post_(meta/term)_cache
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- Custom post type single page returns 404 error
- get_terms by custom post type
- Need a simple but complete example of adding metabox to taxonomy
- Custom post type single-{custom}.php not working
- Retrieve posts by term id custom query
- Get terms by taxonomy AND post_type
- Change order of Custom Taxonomy List
- Get the the top-level parent of a custom taxonomy term
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_terms – only top level
- What is ‘term_group’ for ‘order_by’ in get_terms()?
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Get The Post Type A Taxonomy Is Attached To
- What is singular.php?
- How to only list the child terms of a taxonomy and not their parents?
- How to detect single.php (but not single-portfolio.php)?
- Is there a downside of using wp_defer_term_counting?
- Conditional for single-{post-type}.php
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Hierarchical taxonomy UI
- Order get_terms by term meta
- How to prevent new terms being added to a custom taxonomy?
- Check IF is a “single product page” and Check the “role” for a Redirect
- How to modify single.php in a child theme?
- How can I create a taxonomy meta-box with search suggestions but no new terms input?
- Woocommerce get cart total price in a number format [closed]
- Display current taxonomy term when inside custom post type
- Display all the subcategories from a specific category?
- Add_action to wp_head via functions.php
- wp set object terms vs wp set post terms
- Get term slug of current post
- tax_query in get_posts() not working?
- Get parent id by term id
- Order get_terms using a Custom Field
- How to get_term_children output in alphabetical order?
- Show posts without term
- When to / not to use wp_get_post_terms vs get_the_terms?
- get_term_children for immediate children only (not grandchildren)
- get_terms vs. get_categories: does it matter?
- Query users by custom taxonomy and user role
- Woocommerce get category image full size
- What is wp_insert_term “alias_of” arg for?
- Automatically Assign Parent Terms When A Child Term is Selected
- Custom Single Post By Category
- Getting a taxonomy’s thumbnail url
- Get Terms by IDs with IDs order