WordPress.org

Ready to get started?Download WordPress

Forums

Help me with Regular expression (2 posts)

  1. Leave Stick
    Member
    Posted 1 year ago #

    I do have a string like this and i dont want [gallery columns="7"] to be included. How can i do that using regular expression.

    [gallery columns="7"]
    
    For sale house and lot in Cabancalan Mandaue
    
    lot area 300 sqm
    floor area 220 sqm
    4 bedrooms 4 toilet and bath
    
    with big lawn and open space
    
    inside subdivision
    
    for more info please contact 0932-219-4469
  2. gerald@WPcustoms
    Member
    Posted 1 year ago #

    [gallery columns="7"] [/gallery] is a shortcode. In this case it should returns some css styling (i.e.<div class="column_7">...</div>)
    You need to find the shortcode part in your theme's function.php file or in something like includes/shortcodes.php for the exact div construction.

Topic Closed

This topic has been closed to new replies.

About this Topic