Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter davy27

    (@davy27)

    Moshu, sorry for not elaborating properly, I was v/tired when leaving that post. And very frustrated, too.

    And what if I want the image to be click able? A separate <a></a> wrap?

    LesBessant, thank you for help, but it just shows the same text without it being clickable.

    Umm…I’ve just opened up NotePad++ after a good night’s sleep and found what the problem was! The problem was I put the image url in the excerpt, but I tried putting the image url into the obvious <img src="image.png"> in the optional excerpt and voila!!

    Forum: Plugins
    In reply to: Page name hook?
    Thread Starter davy27

    (@davy27)

    Yeah I have no idea why I said that about return not echoing. As I understand it, [code]return[/code] just literally ‘returns’ the outcome of the function to wherever requests it.

    I didn’t cover functions much and the complexity of WP is driving me nuts!! The lack of documentation for the hooks doesn’t help, either.

    Thank you for the help, I found the solution to my current problem. No doubt I’d need more help in future.

    Forum: Plugins
    In reply to: Page name hook?
    Thread Starter davy27

    (@davy27)

    I just echo’d $post and it doesn’t show.

    add_filter('the_content', 'DEPortfolio_the_content');

    function DEPortfolio_the_content($content)
    {
    $content = 'I am the content. Marvel at my simplicity!' . $post;
    return $content;
    }

    I’ve got this horrible feeling I’m handling this from the wrong direction. I want to have a blog on the index, but on the portfolio page I want to list all blog entries with category ‘portfolio’. I figured I could use a plugin and filter out all the unnecessary parts then format the posts I want then echo it all back onto the page.

    Would I be able to do this via plugin?

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