WordPress!

WordPress

Introduction

 

Core Topics

Editors

 

Keyboard, Keyboard Shortcuts

Plugins

Themes

 

Specific Areas

Access

  • Visibility – standard alternatives, w/o any plugin(s):
    1. Public
    2. Password protected
    3. Private
‘Level’ Anyone Find in Search Direct URL
1. Public (std) Yes Yes Yes
2. Password protected (std) Yes, after provided password Find yes, but access requires password, also applies to internal users Yes, also internal users must provide password.
3. Private (std) No Depend:
* No, does not show up in search for general users
* Yes, does show up in search for internal users (that has access to page)
Depend:
* No – “Page not found” for ‘external’ users
* Yes, for ‘internal’ users

(<table class=”tablesorter” style=”border-collapse: collapse; width: 100%;”>)

From order of accessibility, easiest at top, most limited at bottom:

  1. Public – everyone has access
    1. std – everyone has access, and can find in search
    2. w/ (e.g.) Search Exclude plugin – can at least exclude from searches
      1. Thus allow use of ‘Direct URL’ and without need for password
  2. Password protected
  3. Private

Search

Tables

Table Sorter – Plug-in

“IMPORTANT

    1. THEAD and TBODY tags are compulsory in the desired table, otherwise this plugin will not work.
    2. Add tablesorter class in the desired TABLE tag.
    3. For column heading, use TH tag within THEAD tag.
    4. If you want to exclude a particular column, add sortless class to that TH tag.”
  • class=”tablesorter” IS critical (and THEAD et c in IMPORTANT just above)
  • Added any ID is NOT.
  • E.g. of working definition: <table class=”tablesorter” style=”border-collapse: collapse; width: 100%;”>
    • See Access table above in this page.

Title Tweaking…

CURRENT solution:

  1. Add The SEO Framework plugin (wordpress.org/plugins/autodescription/)
  2. Change Title Settings
    1. In Title Settings section
    2. Click on ‘+ Additions’
    3. Set Site Title Location to Left.
    4. (May want/need to tweak general site settings for length/style/content of title.)
  3. Save
  4. That’s It.

EARLIER:

Editing general-template.php or functions.php, tried both over the years BUT for both files any tweaks are overwritten with themes/Wordpress is updated.

/Volumes/…/clickandbuilds/…/wp-includes/general-template.php

function wp_get_document_title() {

FROM
FROM TO
$title = array(
‘title’ => ”,
);

$title = array(
‘site’ => ”,
‘title’ => ”,
);

functions.php file has also been mentioned as location to add tweaks.

// 2021-04-19 JOHSAR
/* TEST 1 – and it worked
function my_meta_title() {
return ‘My page title’;
}
add_filter( ‘pre_get_document_title’, ‘my_meta_title’ );
END TEST */
/* TEST 2 - and it worked
END TEST 2 */
# $title = apply_filters( 'document_title_parts', $title );
function my_document_title_parts( $title ) {
  $new_title = array();
  ### return 'J&amp;P x - $titlkeMy page title';
  // add category
  // $categories = get_the_category();
  // if ( ! empty( $categories ) ) {
  $new_title['site'] = 'J&amp;P';
  # $new_title['site'] = '';
  // }
  foreach( $title as $k => $v) {
    $new_title[$k] = $v;
  }
  return$new_title;
}

add_filter( 'document_title_parts', 'my_document_title_parts' );