• Resolved temsei

    (@temsei)


    Hello!

    I’ve recently added your plugin, and I’m loving it so far. I’d like to make some customizations, but as I’m still new to the environment here, I’m having some difficulties. So far I’ve made clicking the links redirect to my site instead of CoinMarketCap, and I’m trying to create separate pages for each cryptocurrency in a similar fashion as CMC does:

    https://coinmarketcap.com/currencies/bitcoin/
    https://coinmarketcap.com/currencies/ethereum/

    Any idea how I could do this without manually creating all those pages?

    Thanks in advance, and thanks for the great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author alexmustin

    (@alexmustin)

    Hey temsei,

    Thanks for using my plugin!

    Because of how this is setup to interface with the CoinMarketCap website and how it is setup with pages for each cryptocurrency, you would need to create separate pages for your site for each entry to link to. You’ll have to either manually create the pages, or create some sort of process which generates them automatically (depending on what you’re trying to show on each page).

    I hope this helps answer your question!

    Thread Starter temsei

    (@temsei)

    @alexmustin

    Thanks for the reply!

    Yeah, I figured as much. Do you have any thoughts on how the process could be automated? The idea of manually creating a page for each cryptocurrency feels a little overwhelming. ??

    Plugin Author alexmustin

    (@alexmustin)

    Hey temsei,

    Sure thing.

    One way I can think of off the top of my head, is:

    • Make a new Page Template php file… something like: page-crypto-info.php
    • Create a new Page in WP and use your new template… name it something like Crypto Info
    • Modify the plugin links so each coin link goes to: %your_site%/crypto-info/?%COIN_ID% where %COIN_ID% is the ID of the coin
    • Write some code in your page template that reads the current URL. Use the query string variable and do something with that info.

    I hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding pages to my website for each currency instead of directing to CMC?’ is closed to new replies.