title: Wordpress page title fxn in echo p
body: <p>This is probably super simple but I just cant seem to figure it out.</p>
  <p>How can I pass the current Wordpress page title into this code?</p>
  <p>Below is a snippet from Formidable Forms WP plug-in which basically prints statistics from forms within my website.</p>
  <p>In this case, the # of entries for a specific form (55jqi) and a specific field(50) are displayed on the pages, showing how many other people also submitted that form.</p>
  <p>Im trying to skip needing to update each page (4,380 pages) with the stats output snippet.. and instead call the current page into the stats display code, to show stats for that particular page being viewed.. using an elementor custom post type template.</p>
  <p>I need this:</p>
  <pre><code>echo FrmProStatisticsController::stats_shortcode(array('id' =&gt; '55jqi', 'type' =&gt; 'count', 50 =&gt; 'runtz'));
  </code></pre>
  <p>To work like this:</p>
  <pre><code>echo FrmProStatisticsController::stats_shortcode(array('id' =&gt; '55jqi', 'type' =&gt; 'count', 50 =&gt; 'single_post_title();'));
  </code></pre>
  <p>Replace the input area ‘Runts’ with the current page title, using</p>
  <pre><code>single_post_title()
  </code></pre>
  <p>Or similar.</p>
  <p>Any help would be amazing!!</p>
  <p>There is also a short code available which works the similarly.</p>
  <pre><code>[frm-stats id=55jqi type=count 50=&quot;Runtz&quot;] 
  </code></pre>
  <p>Formidable Forms Plugin shortcode and php page for reference: <a href="https://formidableforms.com/knowledgebase/add-field-totals-and-statistics/#kb-field-filters" rel="nofollow noreferrer">https://formidableforms.com/knowledgebase/add-field-totals-and-statistics/#kb-field-filters</a></p>