RoboPope
Forum Replies Created
-
Forum: Plugins
In reply to: [Fix Media Library] scan for pdf’s missing from the media libraryI hadn’t noticed it listed them when I logged unreferenced images, thank you this has helped with my problem. I thought I wanted to be able to write pdf files that exist back in to the media library referenced or otherwise.
It is clear that my understanding of the date column in the media library is incorrect as it is not the date uploaded but more a last modified field so doesn’t necessarily reflect the /uploads/year/month structure which is annoying when it comes to using the media replace tool. It would seem I have to hunt for the file name rather then selecting an uploaded date range when looking to multiple updates to pdfs all uploaded at the same time but not necessarily then all updated at the same time
Thanks for getting back to me
Forum: Fixing WordPress
In reply to: Converting PHP code to shortcode helpResolved. I ended up using ob_start(); and return ob_get_clean(); around an ammended verison of my code
Forum: Fixing WordPress
In reply to: Converting PHP code to shortcode helplol point taken. Hopefully it has pointed me in the right direction
Thank you 🙂
Forum: Fixing WordPress
In reply to: Converting PHP code to shortcode helpThanks for the reply. I have tried to test this code in php rather than a short code declaration and I get.
Parse error: syntax error, unexpected ‘”’ in /homepages/blah/blah/blah/blah/runtime.php(42) : eval()’d code on line 16 it seems to be unhappy with the single ” in the ‘”>’ part of the statement
`
foreach($page_links as $link){
$ret .= ‘<li><a>ID).'”>’.$link->post_title.'</a></li>’;`