You should get the title by get_the_title:
$page_title = esc_html( get_the_title() );
and the link by get_permalink:
$page_link = esc_url( get_permalink() );
… and perhaps use google 😉
Related Posts:
- Change the_title() of a page dynamically
- Adding more options to the instance of an image. (Attachment Display Settings)
- Plugin – create a page without it appearing in the side menu
- Is wp-content/install.php a Drop-in?
- Trouble with Transient API when W3TC is activated [closed]
- Using wp_filesystem in Plugins
- How to write testable classes in WordPress
- get_template_part from plugin
- Edit or Remove Plugin .htaccess Using The Admin Panel
- WordPress REST API call generates nonce twice on every call
- WordPress scheduled task is called but not executed
- How to create collections that are edited in admin?
- Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php
- How to trap “Publish” button to check for meta box validation?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- wp_mail not recognizing cc and bcc headers
- How can I call “preview post” from wp_remote_get with authentication?
- When is it too late to call the action wp_enqueue_scripts?
- Use js script from one plugin in another plugin
- Plugin Loading Scripts and Styles on Every Page – Even when not being used
- Build dynamic page from cURL (HTML page) response with plugin
- How to store accumulate multiple option values in a single array using Options_API
- template_redirect for single posts w/ custom fields
- can I prevent WP users (even admin) from deleting custom categories?
- set_sale_price in WooCommerce [closed]
- Adding extra pages to plugin that shouldn’t appear in the sidebar
- How do I include background images in my stylesheets in a plugin?
- How to deal with equal & similar arguments for a function?
- What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?
- How do I obtain a list of categories assigned to the current post?
- Custom plugin icon not showing up
- I’m designing a plugin to create database indexes. Suggestions?
- need to get user ID after a user logs in
- Callback is not called in add_settings_field() when passed as part of an array, but recognises that it’s there. It’s passed Class to Class using OOP
- Plugin translations not installed but… strings are translated!
- Secure Pages Best Practice
- Plugin for Android Marketplace downloads?
- Does wp_login only trigger before an user signs in into the admin panel?
- Parse form values before sending to options.php
- My WordPress plugin cannot load my JavaScript file
- Password field is empty when using wp_signon();
- Putting a resized image into media library with wp_get_image_editor(
- Using ReactJS in the WordPress admin for plugin development
- Show error message after exception handled
- How to use github to update my plugin
- wp_nonce_field displaying twice
- jQuery in WordPress Plugin
- WP Cron being triggered but not working as expected
- Plugin Options Array Set to Undefined
- is pre_get_comments not working?
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- Settings API – format container of setting and setting’s description
- Delete option of a Plugin
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Getting a WordPress Debug Strategy
- Best way to include and use Zoho SDK in a wordpress plugin
- How to change WooCommerce loop product title HTML output in single product page and archive page
- Is hint for translator compulsory while internationalizing a string containing variables?
- Settings API: Setting default option via ‘get_option’ fails
- How remove trashed WooCommerce orders from wc_get_orders() result?
- How to use nonce
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- How do I validate extra pin field on my WordPress login form page?
- Does WordPress default CSS have Grids?
- Unexpected T_FUNCTION
- How to avoid conflicts with db.php / $wpdb and other plugins that decide to use them?
- Plugin can’t be activated [closed]
- Is there an action_filter hook to add content before the post title?
- CSS not being applied using wp_enqueue_style
- Make a php array load faster
- Count products with custom metadata field in an order
- setTimeout not working in jquery
- Add quick edit functionnality to plugin table
- Hide / show settings field based on other field’s value
- Woocommerce Product finder feature on home page
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- $_SESSION inside php function executed by AJAX
- Two same AJAX calls – one is working, other doesn’t
- add pagination to wp_remote_get
- Adding and handling custom settings tab to fusion element
- WordPress Reset password Strength set to medium
- Add language localisation to javascript alert?
- redirect_to how to make it simply work with get parameter or similar?
- How to get option values without requiring wp-load?
- How I can give access to my custom plugin for editor roles user?
- Problem with baseurl and interaction with plugin
- Why setcookie function redirecting to home page in wordpress?
- Should all roles be allowed CRUD operation on the database?
- Associating special meaning with user id 0
- Filter get_user_by instead of replace function
- WP: adding Javascript to specific woo commerce pages
- Downloading Generated XML File
- How to create a custom search form and handler?
- How to use permalink query to go to specific tabs in posts
- Conditional query tags do not work before the query is run. Before then, they always return false
- Method to retrieve category names and IDs only as an array?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Send Webhook when post-status is publish or trash
- Using “add_image_size” to register custom image sizes inside plugins not working
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?