Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6662853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:26:06+00:00 2026-05-26T02:26:06+00:00

Right now I am using the following plugin- ‘shortcoder’ to allow me to push

  • 0

Right now I am using the following plugin- ‘shortcoder’ to allow me to push the entire frontpage of my wordpress site using a single post.
Following is the structure of my post-

 [shortcode 1]
 [shortcode 2]
 [shortcode 3]
 [shortcode 4]
 [shortcode 5]
 [shortcode 6]

Right now these are all static containing only html and javascript content. This post is getting displayed on my index.php using the ‘the_content()’ template tag.

But now I will be pulling some dynamic content from my other posts in place of some of these shortcodes whose logic will be hardcoded in the index.php file. For eg.-

 [shortcode 1] static
 [shortcode 2] static
 [shortcode 3] dynamic
 [shortcode 4] static
 [shortcode 5] dynamic
 [shortcode 6] static

Just to be clear all the static sections will come through the shortcode but the dynamic sections will be hardcoded in the index.php file.
However, because of the serial order this logic is getting messed up.

I want to somehow split up the content coming through ‘the_content()’ into the appropriate static sections.

Sorry for the long post but I hope someone can come up with a solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:26:07+00:00Added an answer on May 26, 2026 at 2:26 am

    This is how I solved my problem using normal php explode-

    I first added the ‘~’ separator for all my shortcodes like –

     [Shortcode1]~[Shortcode2]~[Shortcode3]
    

    Then using the following code I separated the shortcodes-

      <?php
        ob_start();
        the_content();
        $content = ob_get_clean();
        $part = explode('~', $content);
        ?>
    

    After that all I did was echoed the required variables at the right spots in the template-

    <?php echo $part[0]; ?>,....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now I'm using the following: export CFLAGS=-O2-isysroot/Developer/SDKs/MacOSX10.5.sdk -arch i386 -I/sw/include/ export LDFLAGS=-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk,-L/sw/lib/ sudo
Running a rails site right now using SQLite3. About once every 500 requests or
Right now I'm using the following to minimize boxed object creation: String myString =
Right now I am using the following method: string[] AudienceTags = ((string[])(relResults[NEVCOAudienceTag].GetType() == typeof(DBNull)
Right now I'm using the following to animate the element to 150px: $(.user-review-toggle).toggle(function(){ $(this).css(display,
Right now I am using the following to compile, when I'm in for example
Right now I am able to retrieve the network status using the following code..
Right now, I am using the following code to create a Shuffle extension: public
Right now I am using the following CSS: option { border-width: 1px; border-style: solid;
Right now I am using the following code to update a TextView txtMain.setText(new text);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.