Deploy MuleSoft App to CloudHub2 Using GitHub Actions CI/CD Pipeline

In this post, I will provide a step-by-step guide on deploying a MuleSoft application to CloudHub2 using GitHub Actions.

Prerequisites

Before we start, let's learn about GitHub Actions.

GitHub Actions is a versatile and powerful automation platform provided by GitHub. It enables developers to define and automate workflows for their software development projects. With GitHub Actions, you can easily set up custom workflows to build, test, deploy, and integrate your code directly from your GitHub repository.

Scriptless Testing in a Mobile World

For years, organizations have aligned their mobile testing strategy around two methods.

  1. Increasing headcount during development phases to dedicate to manual tests. 
  2. Leveraging developers to create code-based test scripts.

The problem? Both of these methods involve a considerable amount of time and resources. Two things that they just don’t have.

How to Add Custom Post Status for Blog Posts in WordPress

Do you want to add a custom post status for your blog posts in WordPress?

Post statuses organize your articles based on where they are in the editorial workflow, such as ‘Drafts’, ‘Pending Review’, or ‘Published’. With the right statuses, you can easily manage your own posts or even blogs submitted by other authors.

In this article, we will show you how to add custom post statuses to blog posts in WordPress.

How to add custom post status for blog posts in WordPress

What Are Post Statuses in WordPress?

Post status allows users to add a workflow status to a blog post. For example, when you are writing a post, you will typically set the status to ‘Draft’. When you publish the post, the status changes to ‘Published’.

You can see the post status of all your blogs by going to Posts » All Posts in your WordPress admin dashboard.

The default WordPress post statuses

By default, WordPress comes with the following post statuses:

  • Draft. The post is saved but not yet published.
  • Auto draft. As you write a new post, WordPress automatically saves a draft as a temporary revision. This allows you to easily undo changes in WordPress.
  • Pending review. A post that’s complete and submitted for review but not yet published. Typically, ‘pending review’ posts need to be reviewed by an editor.
  • Future. The post is scheduled to be published later.
  • Private. A blog post that’s not visible to the public. By default, only admins and editors can see private posts created by other users.
  • Trash. The post is in the trash.
  • Inherit. Occasionally used when a post inherits the status of its parent page. This is most commonly used for post attachments such as images and videos.

Why Add Custom Post Status for Blog Posts in WordPress?

Sometimes, you may need to add your own custom statuses to WordPress. For example, if you accept guest posts on your WordPress blog, then you might create a ‘User Submitted’ status or a ‘Not suitable’ status for guest blogs that don’t quite fit your website.

This can help you manage all the posts on your WordPress website, even when you are working with dozens of bloggers.

Even if you are a solo blogger, you can use custom statuses to organize your own posts and ideas. For example, you might create a ‘Brainstorm’ status where you record all your ideas directly in the WordPress dashboard.

With that in mind, let’s see how you can add custom post status for blog posts in WordPress.

How to Add Custom Post Status for Blog Posts in WordPress

The easiest way to create custom post statuses in WordPress is by using PublishPress Planner. This free plugin allows you to create as many custom statuses as you want. You can also assign a color and icon to each status and then see this information in the PublishPress editorial calendar.

First, you will need to install and activate the plugin. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, you need to go to Planner » Settings. Here, select the ‘Statuses’ tab to get started.

How to add custom post status for blog posts in WordPress

How to Configure the PublishPress Planner Plugin

First, there are a few settings you need to configure.

By default, PublishPress allows you to use the same statuses on pages and posts. However, you may want to use these custom post statuses on only pages or only posts.

To make this change, simply uncheck the box next to ‘Pages’ or ‘Posts’.

Creating a custom status for WordPress pages and posts

If it isn’t already enabled, then you will need to open the ‘Show the status dropdown menu on the post editing screen’ dropdown. Then, select ‘Enabled’. This allows users to change the post status inside the WordPress block editor.

With that done, just click on ‘Save Changes.’

Adding the post status settings to the WordPress content editor

With that out of the way, you are ready to create some custom post statuses.

Customize the Default Post Status for Blog Posts

PublishPress Planner comes with a few built-in statuses that you can add to your WordPress blog posts.

A list of custom post statuses in WordPress

These statuses already have colors and icons assigned.

PublishPress Planner shows this information in its content calendar, as you can see in the following image.

The PublishPress content calendar

To edit any of these default statuses, simply hover your mouse over it.

Then, click on the ‘Edit’ link when it appears.

Editing a default WordPress page or post status

This opens an editor where you can change the status name, slug, icon, and color.

When you are happy with your changes, just click on the ‘Update Status’ button.

Editing a default page or post status in WordPress

Do you want to delete a custom post status instead?

Simply hover over it and click ‘Delete’ when it appears.

Deleting page or post statuses on a website or blog

Create Custom Post Statuses in WordPress

PublishPress also allows you to create your own custom statuses.

To get started, click on the ‘Add New’ tab.

Improving the editorial workflow with custom page and post statuses

This opens a form where you can type in a name for the status.

This will appear in the page or post editor and also in the ‘Quick Edit’ menu, so it’s a good idea to use something descriptive. This is particularly important if you run a multi-author WordPress blog, as it will help other users understand how to use each status.

In this way, you can avoid confusion and improve the editorial workflow.

Adding a title to a custom page status

Next, you can type in a description, which will appear on the Planner » Content Calendar screen. If you are creating lots of new statuses, then the description can be a helpful reminder for yourself and other users.

If you share your WordPress dashboard with other writers and guest bloggers, then this can also be a good way to share more information about the new workflow.

Adding descriptions in PublishPress

After that, you can add a color and icon that will represent the status in your content calendar. This can help you plan your content and schedule posts in WordPress.

Simply click on ‘Select Color’ or ‘Select Icon’ and then make your choice in the popup.

Creating a color-coded content calendar for a blog or website

When you are happy with how the custom post status is set up, click on ‘Add New Status’.

To create more custom statuses, simply repeat these steps.

How to Add a Custom Status to any Page or Post

After creating one more custom statuses, you can add them to any page or post. If you are inside the content editor, simply open the ‘Post Status’ dropdown in the right-hand menu.

Changing the status of a WordPress page or post

You can then choose the custom post status that you want to use for the WordPress blog post.

Another option is to use the Quick Edit setting. This is a great choice for editors or admins who need to quickly change the status of multiple pages or posts.

To do this, go to either Pages » All Pages, or Posts » All Posts. Then, simply hover your mouse over the item you want to change, and click on ‘Quick Edit’ when it appears.

Changing a post's publication status using the Quick Edit settings

You can now open the ‘Status’ dropdown and choose the status you want to use.

With that done, click on ‘Update’ to save your settings.

Changing a page or post status using the Quick Edit settings

Planning Your Content with Custom Post Statuses

As we already mentioned, PublishPress shows post status icons and color labels in its content calendar. This can help you bulk schedule posts in WordPress and even plan effective content-dripping campaigns on your WordPress site.

To see the calendar, you need to go to Planner » Content Calendar in the WordPress dashboard.

An example of a WordPress content calendar

Here, you will see all your pages and posts. To learn more about a particular blog post, simply give it a click.

This opens a popup where you can see the post type, categories and tags, author, and other important information.

How to see more information about a page or post in a content calendar

To see all the pages and posts that have a specific status, open the dropdown that shows ‘All statuses’ by default.

You can then choose any post status from the list.

Filtering pages and posts based on status

This is a great way to find posts that haven’t been scheduled yet or blog posts that you still need to edit or assign.

We hope this tutorial helped you learn how to add custom post status for blog posts in WordPress. You may also want to see our guide on how to make money online blogging with WordPress or check out our list of the best WordPress SEO plugins and tools.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Custom Post Status for Blog Posts in WordPress first appeared on WPBeginner.

Blueprint for Seamless Software Deployment: Insights by a Tech Expert

As an average user, choosing the right software can be a challenge. However, how you deploy the software can make a significant difference in its effectiveness.

The process of deploying software involves making a tool ready for use in a way that ensures it is optimized, secure, and compatible. Software varies in its purpose and performance; the deployment process must be tailored to its specific requirements.

Prompt Engineering: Retrieval Augmented Generation(RAG)

The field of Natural Language Processing (NLP) has seen significant breakthroughs with the advent of transformer-based models like GPT-3. These language models have the ability to generate human-like text and have found diverse applications such as chatbots, content generation, and translation. However, when it comes to enterprise use cases where specialized and customer-specific information is involved, traditional language models might fall short. Fine-tuning these models with new corpora can be expensive and time-consuming. To address this challenge, we can use one of the techniques called “Retrieval Augmented Generation” (RAG).

In this blog, we will explore how RAG works and demonstrate its effectiveness through a practical example using GPT-3.5 Turbo to respond to a product manual as an additional corpus.

Introducing findjava, a Tool to Simplify JRE Selection for Java Applications

Some time ago, I wrote an article about distributing Java command-line applications and how difficult it is to locate the proper java binary to run your application with. But let’s have a quick refresher on the problem before going further.

The Problem

When distributing a Java application via package managers, your application should rely on one of the Java Runtime Environments (a.k.a. JRE) provided by the package manager. Ensuring the correct JRE will be installed as a dependency of your application is the job of the package manager.

Kubernetes Workload Management Using Karpenter

What if we didn’t have to worry about configuring Node Groups or right-sizing compute resources beforehand in our Kubernetes infrastructure? You read it right, Karpenter does not use Node Groups to manage the workload. Instead, it uses Launch Templates for nodes and manages each instance directly without configuring any orchestration mechanism. Karpenter allows you to take full advantage of the cloud’s flexibility. Before Karpenter, Kubernetes users had to use Amazon EC2 Auto Scaling Groups and the Kubernetes Cluster Autoscaler or some custom script cron job to dynamically adjust their cluster compute capacity. In this article, we will cover in detail how to improve the efficiency and cost of running workloads in Kubernetes using Karpenter.

What Is Karpenter?

Karpenter is an open-source provisioner tool that can quickly deploy Kubernetes infrastructure with the right nodes at the right time. It significantly improves the efficiency and cost of running workloads on a cluster. It automatically provisions new nodes in response to un-schedulable pods.

Padding vs Margin – What’s the Difference in WordPress?

Do you want to know the difference between padding and margin in WordPress?

In WordPress, padding is the space between the content and the border within a block, while margin is the space between two separate blocks.

In this article, we will show you the difference between padding and margin and how to use them in WordPress.

Difference between padding and margin in WordPress

What Is Padding in WordPress?

The padding feature on your WordPress website is used to create space inside a block.

For example, you can add space inside a Text block to make its layout more visually appealing and prevent text from appearing too close to the borders of the block.

Padding preview

You can also use padding to control how the content flows on your WordPress blog. For instance, if you add padding to the top and bottom of a Text block, you can make it easier for visitors to read the content.

What Is Margin in WordPress?

Margin is the space around the border of a WordPress block and its surrounding elements.

This can help you add space between two different blocks, creating a more spacious and clean layout for your site.

Margin preview

For example, you can add margins to the top and bottom of a Text block so that it remains visible even when the screen is resized.

Plus, you can also use margins to add space between Image and Text blocks to make your website visually appealing and more accessible for users.

What Is the Difference Between Padding and Margin in WordPress?

Here is a quick list of the differences between padding and margin in WordPress:

PaddingMargin
Padding means adding space between the content and the border of the block.The margin feature adds space outside the border of the block.
Using padding does not affect the other blocks on your website.Using a margin affects other blocks on your website.
Padding can create a buffer around a block.Margins can create space between two different blocks.

How to Use Padding in WordPress

By default, the WordPress full site editor (FSE) comes with the padding feature.

However, keep in mind that if you are not using a block-based theme, then you won’t be able to add padding to your WordPress site unless you use custom CSS.

First, you need to visit the Appearance » Editor page from the WordPress admin sidebar to launch the full site editor.

Once you are there, just choose the page template where you want to add padding to your blocks from the ‘Templates’ sidebar on the left. This sidebar will display all the templates for different pages on your website.

Choose the page where you want to add padding from the left column

After you have done that, the template that you chose will open up on the screen.

From here, click the ‘Edit’ button to start customizing your page template in the full site editor.

Click the Edit icon for full site editor

Next, choose the block where you want to add padding. Remember this means that you will be creating space between the content and the border of the block.

This will open the block’s settings in the block panel on the right side of the screen.

From here, you need to scroll down to the ‘Dimensions’ section and click on the three-dotted menu. This will open a prompt where you must select the ‘Padding’ option.

Choose the padding option from the Dimensions section

Next, simply use the slider to add padding to your block.

Keep in mind that this feature will add padding to all the sides of the block.

Padding in full site editor

However, if you only want to add padding to the top or bottom of the block, then you can also do that by clicking the ‘Unlink Sides’ icon next to the ‘Padding’ option.

Then, you can use different sliders to add padding to the right, left, bottom, or top of the block.

Padding for different corners

Once you are done, just click the ‘Save’ button to store your settings.

How to Use Margin in WordPress

Just like padding, the margin feature comes built-in in the WordPress full site editor. However, this feature won’t be available if you are not using a block theme.

First, head over to the Appearance » Editor page from the WordPress dashboard.

Once you are there, choose the page template where you want to add margins from the column on the left.

Choose page for margin from the left column

This will open the page template that you chose on the screen.

From here, just select the ‘Edit’ button to start customizing your template in the full site editor.

Click the Edit icon for full site editor

Next, choose the block that you want to edit and scroll down to the ‘Dimensions’ section in the block panel on the right.

From here, simply use the sliders to set different margins for the top, bottom, left, and right corners of the block. Using this feature will create space around the block that you chose.

Add margin in the full site editor

However, if you want to use a single slider to add equal margins around the block, then click the ‘Link Sides’ icon next to the ‘Margin’ option.

The block panel will now display a single ‘Margin Mixed’ slider on the screen that you can use to create equal margins around the block.

Use margin slider

Once you are done, don’t forget to click the ‘Save’ button at the top to store your settings.

More Tips for Full Site Editing in WordPress

Other than adding padding and margins to your blocks, you can also use the full site editor to customize your entire WordPress theme.

For example, you can design all your page templates, add your own custom logo, choose brand colors, change the layout, adjust the font size, add background images, and more.

You can also add patterns and different blocks to your website to further customize it. For details, you may want to see our beginner’s guide on how to customize your WordPress theme.

Add patterns to your layouts

You can also use the FSE to add a header, navigation menu, or custom CSS to your website.

Additionally, you can also use Global Styles to ensure consistency across your site. For more detailed instructions, you may want to see our guide on how to customize colors on your WordPress website.

Choose a background color from the Color Picker

However, if you don’t like using the full site editor and would prefer more control over your website’s appearance, then you can use SeedProd to build pages and even your entire theme.

It is the best landing page builder on the market that comes with a drag-and-drop builder that makes it super easy to create an amazing theme for your website.

For more details, you can see our tutorial on how to easily create a custom WordPress theme.

Edit theme template

We hope this article helped you learn the difference between padding and margin in WordPress. You may also be interested in our beginner’s guide on how to change block height and width in WordPress and our top picks for the best Gutenberg blocks plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Padding vs Margin – What’s the Difference in WordPress? first appeared on WPBeginner.