0

I'm new to wordpress with very limited/low knowledge in coding,

I'm trying to build a faq section for different pages, where I need to insert the page title, post date, author etc. in multiple places. I want this below the content in many pages,

Eg.

1.How do i use (page title) A.Use this (page title) as instructed here (link) by (author) 2.Where do i buy (page title) A.Buy (page title) from here (link).

How do I accomplish this?

Is this possible using the wordpress editor?

Thank you

2
  • Many of the answers you're looking for can be found by studying the WordPress functions list: developer.wordpress.org/reference/functions
    – Pixelsmith
    Aug 22, 2020 at 6:26
  • Thanks. I completed the first part, For anyone looking for the same, I stumbled on PHP code snippets and used that and created a shortcode with php with <?php wp_title(); ?> to show what I wanted in my faq sections, Now need some help in showing this faq to all my posts under one category. Regards
    – Srini M
    Aug 22, 2020 at 9:58

1 Answer 1

1

In order to programmatically print the page title, use <?php the_title(); ?>. More here.

The other programmatic functions can be found in the WP functions library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.