Premium support

Please log in to post in these forums. If you didn't create an account when you purchased, please contact us.

Free support

If you haven't purchased GP Premium, support for the free theme can be found on WordPress.org.

Roverd

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • in reply to: Removing CPT slug from post url #472920

    I’ve found a solution, it’s so simple thas is kind of a joke.

    To the rewrite you just have to change your current slug from ‘cpt-slug’ to ‘/’ and the with-front: ‘false’. And done, you just resave permalinks and the url shouldn’t display the cpt slug anymore.

    It’s a wonderful thing being able to extend WP capabilities without the need of a plugin.

    in reply to: Custom Taxonomy's Archive Not Respecting Blog Settings #470235

    Thank you Tom! It worked perfectly.

    in reply to: Custom Taxonomy's Archive Not Respecting Blog Settings #469770

    Hi Tom. I applied the filter but honestly I don’t know if I wrote it correctly.

    My custom taxonomy is called “genero”. Inside that taxonomy there are categories: Horror, Suspenso, Ciencia Ficción, etc. Each of those categories should display an archive page, it’s exactly these ones I want them to respect the blog settings.

    This is the code I inserted in the functions.php file.

    add_filter( 'generate_blog_columns','tu_portfolio_columns' );
    function tu_portfolio_columns( $columns ) {
        if ( is_tax( 'genero' ) ) {
            return true;
        }
    
        return $columns;
    }
    in reply to: Custom Taxonomy's Archive Not Respecting Blog Settings #468969

    Hi Leo! You can visit this link Custom Taxonomy Archive

    in reply to: Displaying Posts Navigation on CPT's #468966

    Sure! Thanks Tom.

    in reply to: Displaying Posts Navigation on CPT's #468748

    Hi Tom! I don’t have the footer activated as I’m using one created via Elementor. Anyway the problem seems to be solved now. I read today a plugin called Imagify (which I have installed on this site) was causing issues at php level. Maybe iy was the source of the conflict, as bassically didn’t do anything else yesterday, just leave it as it is, and today when I logged in, the meta was displaying on the custom post type.

    The site I’m working on is one of movies’ reviews. I have two CPT’s, one called Critica and one Resena. Want to know how do I add the critica post type, should be something like this?

    is_singular( 'resena' 'critica' )

    Also, I wasn’t consider it before. But I have to use a custom taxonomy called “Genres” to classify the genre of the movie or serie: Sci-Fi, Horror, Thriller, etc. How do I include a custom taxonomy to show just like the default categories on the nav meta.

    in reply to: Displaying Posts Navigation on CPT's #467344

    Hi Tom! The code does not seem to work. I’m using a child theme, so I’m adding the code in the functions.php file. My post type is called “resena”, but still the posts nav doesn’t show up. I purged the cache on my site using WP Rocket but still the same.

    I enter this thread cause I’m interested in the infinite scroll feature. I just checked your site, it looks amazing, congrats on the design. Anyway, I’m using Opera on Windows and the issue you’re talking about does reproduce on my browser too.

    in reply to: Facebook Comments On Single Posts #463547

    Hi Tom. I just got it to work. The first code I was sharing had the wrong url. I mean, I was always using the main url of my site, that’s why all pages were sharing comments, because the comments got assigned to that url. So the trick here is to insert some php calling the actual permalink.

    So this is the first code:

    <div class="fb-comments" data-href="https://developers.facebook.com/docs/plugins/comments#configurator" data-numposts="5"></div>

    And here is how is supposed to be in order to just work:

    <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="5" data-mobile="Auto-detect" data-colorscheme="light" data-order-by="time"></div>

    The secret is “<?php the_permalink(); ?>”. But one thing I noticed is that the code can’t be inserted anywhere in the single.php file as you noted. It’s only on the after main content area where it works. If I try to put it below the comments_template it doesn’t load.

    Anyway, thank you for the suggestion on plugins. I’m trying to understand how to do certain things without using a plugin. I’m happy I understand this a little bit more.

    in reply to: Facebook Comments On Single Posts #463320

    Well, basically all of my posts are sharing the same comments. If I make a comment on post 1 it does appear on post 2. And inserting the html on the single.php doesn’t work. I have tried the hook again and it loads the module. Any suggestion on how to resolve this? It’s kinda bizarre.

    Should I make a copy of the comments.php to the child theme and then erase everything and paste the facebook’s html? As I understand that is the template for the comments section.

    in reply to: Facebook Comments On Single Posts #462725

    This is the code provided by facebook:

    <div class=”fb-comments”
    data-href=”https://developers.facebook.com/docs/plugins/comments#configurator”
    data-width=”500″ data-numposts=”5″>

    Basically they say I should insert it wherever I want the comments plugin to show in. I want to insert it in the single.php file. As I said, I’m using a child theme. It’s just unclear to me what part of the code in the single.php should I override.

    in reply to: Full Width Slide Out Navigation #442615

    Thank you Tom!

    in reply to: Google Tag Manager Code Right After The Body Tag #436695

    Done, thank you so much Tom!

    in reply to: Google Tag Manager Code Right After The Body Tag #436691

    It didn’t work. Take a look at the screenshots: https://imgur.com/a/jEijE

    This Google Tag Manager thing is driving me crazy.

    in reply to: Google Tag Manager Code Right After The Body Tag #436630

    Hi Leo, thank you. It actually cannot display a particular GTM script. But I was told by Tom himself that there does exist a new solution for this on GP 2.0.

Viewing 15 posts - 1 through 15 (of 32 total)