Skip to main content

meta get

Usage

seo-ops meta get <post-id> <field> [--path=<path>]

Get the value of one SEO meta field for a specific post.

Examples

# Get SEO title for post 123
seo-ops meta get 123 title --path=/var/www/html
# My SEO Optimized Page Title

# Get meta description
seo-ops meta get 123 description --path=/var/www/html
# This is the meta description for my post

# Get canonical URL
seo-ops meta get 123 canonical --path=/var/www/html
# https://example.com/my-post

Exit Codes

CodeMeaning
0Success
1Invalid path or WordPress not found
2Missing argument
4WordPress path not configured