• Resolved biffwonderland

    (@biffwonderland)


    Greetings Great Pod Gods….

    How do I take my variable of {@vlogger_name} and replace the “Archive Page” that resides on my archive.php file?
    It looks like I’ll be doing this quite a bit. Is the common remedy to use WordPress Templates?

    TIA!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter biffwonderland

    (@biffwonderland)

    I copied archive.php 3 times and renamed them
    vlogger.php, resort.php, dining.php, and attraction.php

    I know I’ll need to customize them as templates.

    Plugin Contributor Jim True

    (@jimtrue)

    If you’re trying to override the title of your Archive, that comes from your theme. You can’t use magic tags to replace that name. Yes, you would need to use WP PHP Theme Templates or a filter.

    Naming structure is archive-<post-type-slug>.php none of the names you created would work unless you prefix them with archive-

    Thread Starter biffwonderland

    (@biffwonderland)

    AH….cool…cool. Thank, Jim! I’ll try this! ??

    Thread Starter biffwonderland

    (@biffwonderland)

    Okay, I have all the template pages working. All with the archive prefix.

    archive-vlogger.php, archive-resort.php, archive-dining.php, and archive-attraction.php

    This is the code I change on each:

    else :
    _e( 'Archive Page', 'colormag' );
    endif;

    How do I populate it with the Vlogger’s Name?

    Thanks! I’m so close…

    Thread Starter biffwonderland

    (@biffwonderland)

    I’m considering hard coding some differences on my new sidebars. Like you showed me with the sidebars (which works REALLY well btw)

    How do I move this to a archive-<post-type-slug>.php page?

    [if instagram]
    <a href="{@instagram}"><img src="/wp-content/images/instagram.png" /></a>
    [/if]
    [if patreon]
    <a href="{@patreon}"><img src="/wp-content/images/patreon.png" /></a>
    [/if]
    [if twitter]
    <a href="{@twitter}"><img src="/wp-content/images/twitter.png" /></a>
    [/if]
    

    etc….
    I hope it’s okay that I didn’t open a new topic. I’m hoping these two fixes are related; using PODS on Theme .php files.

    I have other issues that are basically the some thing…like adding {@media_artist} as a link in the post meta-data.

    Thanks ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page Title to replace “Archive”’ is closed to new replies.