Add text to the bottom of particular pages

Since you know the page ID we can directly look page ID 267 – so let’s skip the searching for an ID and jump to the comparison: You mentioned that you do not want it on the Entrepreneurship page, so lets only look for pages where the parent is ID 267 if($post->post_parent == 267) It … Read more

Pulling posts tagged with similar title name

First of all, don’t use query_posts Form Codex: Note: This function isn’t meant to be used by plugins or themes. As explained later, there are better, more performant options to alter the main query. query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of … Read more

Changing title bar in browser window of theme “Encounters Lite”

Filter wp_title, get the current page title from your external app, and return that title. Sample code: add_filter( ‘wp_title’, function( $title ) { // check if it the correct page if ( ! is_my_external_app_page() ) return $title; return get_title_from_external_app(); }); The implementation details are up to you.

Add role and edit page capabilities

The edit_pages capability only allows a user to edit his own unpublished pages. It does neither allow to edit others pages (this would require the edit_others_pages capability) nor does it allow to publish or edit published pages (capabilities: publish_pages and edit_published_pages). I’d strongly recommend having a look on this wonderful table: https://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table listing up all … Read more

the_content() Returns post content when I want page content

When you configure your blog (posts) page under Settings > Reading, that page becomes nothing more than a placeholder – in other words, you won’t be able to grab it’s title/content within index.php without a little trickery: if ( $page_id = get_option( ‘page_for_posts’ ) ) { echo get_the_title( $page_id ); // the_content() doesn’t accept a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)