ResolvedPost articles sidebar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37240
    ionutionut95
    Participant

    How can I change the article page format to something with sidebar in order to be able to add widgets?
    Here is how it is displayed right now.

    Salată de ardei

    #37245
    Alex
    Keymaster

    Hello ionutionut95,

    From the edit page screen, on the right side you will find a box, labeled “Page Structure Options”.
    There is an option “Manage sidebar”. From there you can enable/disable the sidebar on this page/post and set which sidebar to be shown.

    Regards,
    Alex

    #37255
    ionutionut95
    Participant

    Ok, but how can I add it for all Articles? I have 3000 articles and I want to add the sidebar for all at once.

    #37270
    Alex
    Keymaster

    Hello ionutionut95,

    We didn’t implement such general option.
    What you can do is to execute following query in your database, but be sure to make a backup before that.
    The query enables the sidebar for all posts (articles)

    UPDATE wp_postmeta pm
    INNER JOIN wp_posts p ON p.ID = pm.post_id
    SET pm.meta_value = "yes"
    WHERE p.post_type = "post" AND pm.meta_key = "lafka_show_sidebar"

    In the similar way you can set the exact sidebar you want to use. In this case the meta_key will be “lafka_custom_sidebar” and the meta_value will be the name of the sidebar.

    Regards,
    Alex

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register