You can make use the queried object to return the title of the page used as blogpage
You can use the following: (Require PHP 5.4+)
$title = get_queried_object()->post_title;
var_dump( $title );
Related Posts:
- posts order by title second word
- How to get post id of static front page?
- Pagination Not working on Home Page with 2 Query
- Wp query orderby ‘title’ doesn’t work
- The pagination on index.php doesn’t work on a first page
- Filtering posts from different categories into different section by doing WP_Query only once
- WP Query Args – Title or Taxonomy Value
- Shortcode Not Working in Slider When Added To Post Title
- How To Keep Search Title the same on paged Results
- Use title of post as argument for query
- WP_Query by keyword OR post tag
- Posts limit on homepage (genesis framework)
- Where my home page and font options has gone?
- How to search posts by title with special characters in WP_Query?
- Excluding a category from frontpage but not from WP_Query
- WP Query – Search in title or author_name
- display the children of the post using the current page as the main parent
- WP Query for Multiple Post Types
- URL to Post Archive of Custom Query
- Display 3 levels of categories on page
- Filtering ‘Featured’ posts from a batch of category IDs
- Limit default Search query to post_title
- Get posts by similar names and categories
- update_post_meta() not updating
- WP_Query: custom orderby (not ASC nor DESC)
- Wp_query ordering problem
- Show posts from categories instead of tags
- Multiple meta_query not working
- XMLRPC pingback.extensions.getPingbacks not work with parameters
- Query by meta value (add a dropdown of all values)
- How can I show only last year posts in wordpress archive?
- How to pass a php variable to js within a template?
- Sorting Posts by Taxonomy thats not within the query’s $args
- Meta query doesn’t remove placeholder escape before query
- Multiple values in WP_Query : category__and
- Is meta_key used for ordering, filtering, or both?
- Insert wp_query after the_content with plugin (filter the_content won’t work)
- compare for multiple meta values for same key in wp_query
- WP_Query about meta_key and its array value
- taxquery taxonomy get terms
- Get all wp_users sort by metakey
- Order Posts By Custom Field That is an array of objects
- Query string order by custom field
- Paging works correctly on local version, but not live?
- Create global array to compare inside a query
- How to show post title in content editor in backend?
- query all posts published by certain user id
- Separate by Category Post Type
- How do I hide submenus from the top menu bar?
- ACF: using two loops, the_field returns field content from another loop
- How to create URL parameters to run custom queries?
- WP_Query doesn’t work when url parameter is added
- why ignore_sticky_posts in sticky post query
- Logging search queries for logged-in users
- pages shortcode filtering by category
- Pagination not working in custom loop WP_Query
- WordPress tax_query ignoring relation OR
- How to exclude posts by ID within a category/archive loop
- pagination functions are not working
- Multiple wpostmeta.meta_key
- Best way to query posts and order by relevancy to query
- Gather same custom field values in one value in a select tag with wp_query
- Dynamically Update Page Content
- get term objects and post objects in query
- Optimal way to make tags in tax_query optional?
- How to count posts in loop with infinite scroll?
- How to show terms from another taxonomy
- Wp Query sort order
- the_post_thumbnail and multiple WP_Query
- I have 3 categories, i want to display on a loop the last 3 of every category
- get_posts query caching?
- How to define a custom hierarchy for terms?
- WP_User_Query not searching numbers?
- Custom post type loop error: Trying to get property of non-object
- Search Field that allows options of “Match any keyword” or “Match all keywords”
- Is the ‘parse_query’ filter still valid to change filtered content on admin list view?
- I removed the “wp_rm_logs” table and am constantly getting this error
- wp_query returns match with no criteria
- In which file to use $wpdb and its functions for database operations and queries in wordpress?
- How to set selected attribute on option after filter query?
- Get posts with any value in attribute
- datetime picker, timestamps and meta queries
- custom search form, posts_per_page value being ignored
- meta_query is not allowing to show posts when querying multiple arguments in a WP_Query
- WP_Query & shortcode : Return 3 articles from a category WordPress
- WP_Query for posts that have postmeta assigned to a taxonomy
- Get specific value from variable to use in query
- WP_Query with meta_query won’t orderby
- Adding Category in WP_Query Not Working
- Showing the correct number of posts_per_page when avoiding the use of post__not_in
- How do i query woocommerce booking post type on init action?
- WP Query Meta Query
- Paginated Author.php not using Author.php template
- Migrating mysqli query to wp_query
- WP_Query to Retrieve Posts from WooCommerce Products that are Only in Catalog
- Order & Orderby clause not working with custom query
- Second WP_Query loop shows data from main query
- meta_query only check if both value are set
- My entry results are not consistently alphabetized
- post_type not working when tag__in is present?