Missing Edit button

The ‘edit’ button will appear next to the post title (or nearby) if you are logged in and have ‘edit’ capabilities. The placement of the button (or link) is dependent on the theme. Some themes don’t display it next to the title. But you do have to be logged in to see it. If you … Read more

Access to numerically indexed array in wpdb Class and undefined offset

var_dump($einzel); array(10) { [0]=> string(3) “144” [1]=> string(10) “21.05.2020” [2]=> string(10) “00.00.0000” [3]=> string(30) “Zugtag der Königsgilde Voitze” [4]=> string(14) ” ab 10.00 Uhr ” [5]=> string(0) “” [6]=> string(41) “Schützenhaus Voitze, Salzwedeler Straße” [7]=> string(6) “Voitze” [8]=> string(11) “Gaede,Joerg” [9]=> string(23) “[email protected]” } There are two same column names: ‘id’ and ‘name’. I worked … Read more

Custom post categories are not displaying on the page

$args = array( ‘post_type’ => ‘travelplan’, ‘numberposts’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘travelplan_cat’, ‘field’ => ‘slug’, ‘terms’ => ‘testtravel’ ) ) ); $plans = get_posts( $args ); echo ‘<pre>’; print_r($plans); echo ‘</pre>’; Change your register_taxonomy like this function create_travelPlan_taxonomy() { register_taxonomy( ‘travelplan_cat’, ‘travelplan’, array( ‘label’ => __( ‘Category’ ), ‘rewrite’ => array( … Read more

removing the standard dashboard widgets in WP so I Can replace with custom

the above example has the wrong comma type probably from copy and pasting. Here is the right type //Disable Default Dashboard Widgets function remove_dashboard_meta() { remove_meta_box(‘dashboard_incoming_links’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_plugins’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_primary’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_secondary’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_quick_press’, ‘dashboard’, ‘side’); remove_meta_box(‘dashboard_recent_drafts’, ‘dashboard’, ‘side’); remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_right_now’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_activity’, ‘dashboard’, ‘normal’); remove_meta_box(‘rg_forms_dashboard’, ‘dashboard’, ‘normal’); … Read more