Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • So, on a related theme. I’m using a WP Bakery based theme. The standard WP Search works for the Relevanssi search plugin, but isn’t showing results for the ajax live search.

    Is there a version of the snippet above that would work for that?

    Thread Starter bbsbcastle

    (@bbsbcastle)

    Right now, I’m playing around with using a code snippet and shortcode to make this work, but that might not be the best way.

    Every week the digital edition has 16 images uploaded with names like “Issue 54-20_001.jpg”, there 54-20 is the issue and 001 is the page.

    My original thought was to have a spot near the top of the page where I could define a variable like $issue=’Issue 54-20′, then where I’m referencing the pages, have the image name defined as $issue . ‘001’ for page 1, etc.

    This is kind of what I’m doing in the code snippet, but it would never be something the end user could maintain that way.

    Just thinking out loud, but maybe I could refine the code snippet shortcode so it passes the page number as a parameter (or the “content”). That way, they could define the page something like…

    [issue]001[/issue]
    [issue]002[/issue]
    [issue]003[/issue]
    [issue]004[/issue]

    Advertising block

    [issue]005[/issue]
    [issue]006[/issue]
    [issue]007[/issue]
    [issue]008[/issue]

    etc…

Viewing 2 replies - 1 through 2 (of 2 total)