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
- Conditional for single-{post-type}.php
- Hierarchical taxonomy UI
- Getting a taxonomy’s thumbnail url
- Control term order on a per-post basis
- How do I list custom taxonomy terms without the links?
- same taxonomy for several post types: how to hide empty in a specific post type?
- How to sort terms with diacritical signs?
- Sort get_users by custom field
- Using get_terms for custom taxonomy in functions.php
- WP_insert_term how to insert multiple values as taxonomny term?
- Custom taxonomy list and sortby letter pagination problem
- Display Categories Assigned to a WooCommerce Product
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Display empty taxonomy terms with get_terms()
- Get the Term List – Ordering
- Adding Multiple Values to a Post Meta Key
- Strict tag list – user should choose only existing tags for posts
- Problems with function on function.php
- Operations with custom fields values in a loop
- Add code just after Post content
- I want to loop through Woocommerce Product Catogories and show them in dropdown
- setting taxonomy term to bulk posts using ids
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Notice: Trying to get property ‘term_id’ of non-object
- Programmatically rewriting slug through functions.php but returns 404
- wpdb->term_taxonomy count posts from both published and private posts?
- Send to different single pages by category when multiple categories exist
- Foreach inside shortcode not working as planned
- Display post titles that match string in post content
- Get posts from specific taxonomy term
- How do I return all terms from multiple taxonomies?
- List taxonomy term slugs within shortcode (do_shortcode)
- Returning One custom taxonomy term name
- Get terms of a post but only if they’re also the child of a specific term
- Parent category / child category posts
- one post per term taxonomy
- wp_insert_term() doesnt insert a term
- trying to show single post but displays all post on a custom post type
- Showing HTML if Post is In Certain Taxonomy Term
- Running a function only once when a taxonomy term is changed
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Add properties to term object
- custom wp_list_categories in single.php
- Loop all post on single.php
- Pages of my taxonomy terms are showing all posts
- Show Custom Taxonomy as Headline for related posts
- $product->ID in has_term() not working, but manually inputting the ID works, why?
- How to get all posts related to a taxonomy?
- DIVs not showing correctly on CPT?
- Custom post type single display is ommited
- Custom terms in custom category taxonomy
- List a custom post type’s posts ordered by nested custom taxonomy
- Display yesterday’s last post’s Custom field from Unique terms of one Taxonomies
- Can I have a specific template for products even if they are standard posts and not CPT?
- No matching template found when using single.php
- hide_empty property not working when using get_terms