Can you have multiple page templates for custom post types in WordPress?
-
Jane James
-
December 14, 2021
-
PHP, Wordpress
-
0 Comments
Creating multiple templates for custom post types. But first: What is a custom post type? Custom post types are specific, custom code-added posts that allow you to keep your site flexible. For example: You might want a section for members of the team and add them in different ways on their own page or list inside of WordPress itself with …
Continue Reading
WordPress: add a like button to your posts using PHP and Javascript
-
Jane James
-
October 4, 2021
-
PHP, Wordpress
-
0 Comments
Add a like button to your posts with PHP and Javascript This week I had a client request a modification to an existing WordPress page template which already had two post anchor identifiers to retrieve get_the_author_meta and get_the_date. It was a custom template that displays a CPT by category to a page. You can see the example below of the …
Continue Reading
Connect your WordPress site to Github/Sentry via your EC2 instance
-
Jane James
-
September 27, 2021
-
AWS, Wordpress
-
3 Comments
Connect your WordPress Site to Sentry for application monitoring If you maintain a corporate wordpress site with a large database, you are going to need some help debugging it – in fact debugging your site can feel like a full time job without the right tools. Fortunately companies have recognised this and Sentry does an excellent job of error reporting …
Continue Reading
How to add additional footer widgets to any Genesis theme
-
Jane James
-
September 24, 2021
-
Genesis, Wordpress
-
3 Comments
Add a fourth footer widget to Genesis So I was working on some updates for a client Megan Jordan and she wanted a fourth footer widget area added to her site for an acknowledgement to country. I built her site using the Genesis sample SCSS theme by Cobalt apps which by default comes with 3 footer widget areas. To add a fourth you have …
Continue Reading
How to disable WordPress admin bar from all non admins AND editors
-
Jane James
-
September 3, 2021
-
Design, Wordpress
-
13 Comments
Disable admin bar from all admins and editors I’m going to share my gist on how I edited my functions.php file to also hide editors as well as administrators, which works well for this client. As a developer, I always try to build functionality into the site instead of installing plugins, but for good measure I have included two non …
Continue Reading