• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

simple hooks & site guard

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › General Genesis Framework Discussions › simple hooks & site guard

This topic is: resolved
  • This topic has 1 reply, 2 voices, and was last updated 8 months, 2 weeks ago by Anita.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 30, 2021 at 11:51 pm #504501
    Ryuho
    Participant

    Ask a question using google translate.

    I put the following PHP code in genesis_before_entry Hook with genesis simple hooks, and when I tried to execute it with the execute php on thi hook? Check, I got the following error, but I don't know the solution. Please tell me the cause.

    -php code-
    <p class="related-hl">スポンサー記事</p>

    <?php global $post;
    $args = array(
    'post_type' => 'page',
    'sort_order' => 'DESC',
    'sort_column' => 'post_modified',
    'child_of' => 934
    ); ?>
    <?php $myposts = get_pages( $args ); shuffle($myposts); ?>

    <?php foreach( array_slice($myposts,0,3) as $post ) : setup_postdata($post);?>

    <div class="related-div">">
    <?php the_post_thumbnail(array(150,150)); ?>
    <?php the_title();?>
    </div>

    <?php endforeach; ?>
    <?php wp_reset_postdata(); ?>

    -error page-
    Forbidden access
    The server refuse to browse the page.
    The URL or value may not be correct. Please confirm the value.
    Powered by SiteGuard Lite

    -siteguard settings-
    Management page access restriction off
    Login page change on
    Image recognition on
    Login details error message disabled on
    Login lock on
    Login alert on
    Fail once off
    XMLRPC protection on
    User name leakage protection off
    Update notification on
    waf tuning support off

    October 11, 2021 at 8:20 pm #504535
    Anita
    Keymaster

    Closing as resolved.


    Love coffee, chocolate and my Bella!

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘simple hooks & site guard’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2022 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble