Category: Development

ACF Displaying a select field

To display field valuses use this code $field = get_field_object(‘field_name’); $value = get_field(‘field_name’); $label = $field[‘choices’][ $value ];

Read More

Push updates

git push origin master

Read More

Change the remote URL / URI

If you are updating or changing a repository that already has an existing URI, use the following line.

Read More

Add remote Url

To add a remote URL to a completely new GIT Repository use the following code:

Read More

Identify what the remote URL is

Use the following code to identify the remote URL of your existing Repo.

Read More

How to Un-tracking a file in GIT

Step 1: First create a .git ignore document $ touch .gitignore Step 2: add the files to be untracked in .gitignore $ nano .gitignore  (to access the file and edit) Simply add the file name and its directory. Step 3: Delete the file from .git tracking $ git rm  –cached…

Read More