andyinspired (@andyinspired)

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • In reply to: Minor HTML Error

    andyinspired
    Participant

    @andyinspired

    I have the GD Attachments plugin installed, so when you add an attachment this markup is generated.

    In reply to: GD Attachments Archive

    andyinspired
    Participant

    @andyinspired

    ok, so far I have this code:

    function display_attachments() {
    $args = array(
        'post_type'   => 'attachment',
        'post_status' => 'inherit',      
        'meta_query'  => array(
            array(
                'key'     => '_bbp_attachment',
                'value'   => '1'
            )
        )
    );
    $query = new WP_Query($args);
    	
    	print_r($query);
    }	
    add_shortcode( 'display_attachments', 'display_attachments' );	

    This appears to output the whole SQL query as well as the attachment url string. Can you help?

    In reply to: GD Attachments Archive

    andyinspired
    Participant

    @andyinspired

    Thank you, thats just the advice I needed!

    In reply to: GD Attachments Archive

    andyinspired
    Participant

    @andyinspired

    I’ve been looking into this further, could you point me in the right direction for only displaying media files that are attached to Forum Topics/replies?

    Thanks.

    In reply to: GD Attachments Archive

    andyinspired
    Participant

    @andyinspired

    Thank you, thats really helpful!

    In reply to: Moving Breadcrumbs

    andyinspired
    Participant

    @andyinspired

    Nevermind I just copied and edited header.php instead and this works across all pages including homepage.

    Thanks for your assistance.

    In reply to: Moving Breadcrumbs

    andyinspired
    Participant

    @andyinspired

    Hmmm, also just noticed I’ve lost my sidebar now on all child pages. Not sure why as they are definitely enabled in the theme customizer.

    EDIT: Nevermind for some reason they were displaying below the content, will need to adjust CSS

    In reply to: Moving Breadcrumbs

    andyinspired
    Participant

    @andyinspired

    Using that what the file plugin it seems the homepage is not using my child theme but /themes/astra/page.php

    Not sure why?

    In reply to: Moving Breadcrumbs

    andyinspired
    Participant

    @andyinspired

    Thank you, works great, it was indeed page.php.

    However, I’m trying to display the page title as well using:

    <?php the_title(); ?><?php bbp_breadcrumb(); ?>

    It works on all child pages but not on the homepage, I’ve also tried adding it to the index.php file but without success. I know the breadcrumbs won’t display there I just want the title there to keep it consistent with the rest of the site.

    Any ideas?

    In reply to: Moving Breadcrumbs

    andyinspired
    Participant

    @andyinspired

    I’m using the Astra theme (https://wpastra.com/), I’m comfortable writing CSS and editing PHP code. Just wasn’t sure if there was a filter I could use or whether I need to edit a template?.

    Thanks.

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