Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • urbanity & architecture
    • projects
    • website design

Web Dev

WordPress: Attempt to assign property “post_content” on null

October 14, 2023   |   Web Dev

I’ve hit this error a few times. The issue is with the wp_posts table, where for some reason when exporting/importing the database/table causes some issue with multiple posts having the same IDs for multiple posts. To resolve, re-import the database, or possibly delete out all of the rows that have duplicate post Ids.

Read More

Getting Data from Multiple .then Statements in Javascript

September 18, 2023   |   Web Dev

I always have a hard time pulling data through multiple .then statements in javascript. This method works sufficiently well. Basically, define an array/object, and then as data is collected, add content to that array. All of the collected content should be available in the final .then statement. Something like this (all the data is collected […]

Read More

Blurry Background Images in CSS

July 1, 2023   |   Web Dev

There are a number of reasons why background image can look blurry in CSS, but recently I came across this issue that I haven’t noticed before — in part, because usually text doesn’t seem to be present, and so blurriness is a little less noticable. Both the top and bottom screenshots in the image below […]

Read More

A Better Way to Blog in WordPress

June 15, 2022   |   Web Dev

I’ve been wanting to make my blog a litle more robust — almost just a dumping ground of random thoughts and notes, along with the occassional longer posts. I’ve found that the way of adding posts into wordpress was just far to cumbersome to make that a reality. I wanted something fluid, that I could […]

Read More

There is no Tracking Information for the Current Branch

May 27, 2022   |   Web Dev

Solve it by specifying the branch on the server (normally I would just do a git pull ‘branch-name’, which fails in this case): git pull origin ‘branch-name’

Read More

CSS Cursor Types

May 26, 2022   |   Web Dev

I can never quite remember the common cursor types. For some reason, I always think the arrow cursor style, which is what you normally have when browsing a page is set as an ‘arrow’ (which isn’t part of the spec), or as a ‘pointer’, because, well, I guess that seems closer to an arrow, which […]

Read More

WordPress – Category Page Not Showing Posts With Custom Post Type

May 25, 2022   |   Web Dev

I had created a post type for news articles. Unfortunately, when categorizing the pages, and trying to view the category from the front end, those posts weren’t appearing.   Apparently that doesn’t work for cusotm post types by default. To get them to show, add this to the functions.php file: function namespace_add_custom_types( $query ) {    if( (is_category() || is_tag()) && $query->is_archive() && empty( $query->query_vars[‘suppress_filters’] ) ) {       $query->set( ‘post_type’, array(        ‘post’, ‘news’       ));    } } […]

Read More

Javascript – Get Data Attribute

May 25, 2022   |   Web Dev

Get a data attribute from an html tag (in this case, something like data-output=’test’): output = e.srcElement.getAttribute(“data-output”);

Read More

WordPress Enable Tags for Custom Post Type

May 24, 2022   |   Web Dev

Just add this line when you register the post type: ‘taxonomies’ => array(‘category’, ‘post_tag’) So something like this for all of the code: register_post_type( ‘customtype’,    array(       ‘labels’ => array(          ‘name’ => __( ‘CustomType’ ),          ‘singular_name’ => __( ‘CustomType’ )       ),       ‘supports’ => array(          ‘title’,’page-attributes’,’description’,’editor’, ‘thumbnail’       ),       ‘public’ => true,       ‘has_archive’ => true,       ‘rewrite’ => array(‘slug’ => ‘customtype’),       ‘taxonomies’ => array(‘category’, ‘post_tag’)    ) );

Read More

WordPress Post Type Supports Options

May 24, 2022   |   Web Dev

– title – editor – comments – revisions – trackbacks – author – excerpt – page-attributes – thumbnail – custom-fields – post-formats’

Read More

Posts navigation

Older posts

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance