coresocial-profiles-list

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

PHP
Definition
[coresocial-profiles-list show="profiles" profiles="1,2" /]
coreSocial 4.0 — core/basic/Shortcodes.php:43
Attributes
Name
Type
Description
Default
show
string
all displays all saved profiles; profiles uses the selected profile IDs.
all
profiles
array|string
Saved profile IDs. In shortcodes use a comma-separated list and show=”profiles”. An empty list switches the shortcode back to all profiles.
array()
block_id
string
Optional CSS wrapper identifier, sanitized as an HTML class.
layout
string
icon (icons is an alias), label, icon-top, icon-left, or icon-right.
icon
style
string
Profile style: plain or shaded.
plain
label
string
name, followers, or name-followers. Follower labels use the manually entered count; a zero count retains the name.
name
columns
int
Number of columns when align=”justify”; the rendered column class is capped at 4. Zero leaves columns unspecified.
0
align
string
List alignment: none, left, center, right, or justify.
center
item_align
string
Profile content alignment: left, center, or right.
center
target
string
Link target: empty, _blank, _self, _parent, or _top.
_blank
rel
string
Space-separated allowed link relations: noopener,, nofollow, external, me.
noopener
icon_size
int
Icon size in pixels; absolute integer capped at 1000.
20
font_size
int
Label size in pixels; absolute integer capped at 1000.
16
icon_border_radius
int
Corner radius in pixels; absolute integer capped at 1000.
0
icon_background
string
Color mode: transparent, inherit, brand, or custom. inherit leaves the property to the surrounding CSS.
transparent
icon_text
string
Color mode: transparent, inherit, brand, or custom. inherit leaves the property to the surrounding CSS.
inherit
icon_hover_background
string
Color mode: transparent, inherit, brand, or custom. inherit leaves the property to the surrounding CSS.
transparent
icon_hover_text
string
Color mode: transparent, inherit, brand, or custom. inherit leaves the property to the surrounding CSS.
brand
icon_background_custom
string
Hex color used when the corresponding color mode is custom; invalid colors become transparent.
#FFFFFF
icon_text_custom
string
Hex color used when the corresponding color mode is custom; invalid colors become transparent.
#000000
icon_hover_background_custom
string
Hex color used when the corresponding color mode is custom; invalid colors become transparent.
#FFFFFF
icon_hover_text_custom
string
Hex color used when the corresponding color mode is custom; invalid colors become transparent.
#000000
Output
A shortcode wrapper containing the profile list and generated styles. An empty configuration still renders the wrapper/list.

Available in Lite and Pro. Configure profile records in Settings → Profiles before using this shortcode. Profile IDs identify saved profile records, not network codes.

The default is all saved profiles. To select records, provide both show=”profiles” and profiles=”1,2″. Replace those example IDs with existing IDs from your own configuration. Missing or invalid record IDs are skipped.

An empty profiles value falls back to all profiles in the shortcode. This differs from the Profiles block, where an explicitly empty selection can show no profiles.

Follower counts are entered manually in the profile settings; this shortcode does not fetch follower counts from social networks. The saved profile label controls words such as Followers, Fans, or Subscribers.

Definition attributes and the example illustrate syntax rather than changing the fixed defaults listed below.

The definition demonstrates attribute syntax. The attribute rows distinguish fixed defaults from values inherited from saved settings.

Example

[[coresocial-profiles-list show="profiles" profiles="1,2" layout="icon-left" label="name-followers" /]]
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0