madeoflegos
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Can’t create an Images alt tag in The LoopOtto42,
That worked perfectly. I truly appreciate all the help that you have sent my way.
Take care
Forum: Developing with WordPress
In reply to: Need help using WordPress like a CMSOtto42,
Thanks again for the great help. Issue Resolved.
Forum: Developing with WordPress
In reply to: Need help using WordPress like a CMSOtto42,
Is there a way to reference the post limit set in the WordPress Admin menu.
if so I could create a loop that builds the link with the appropriate page like this:
Pseudo code:
The loop if (have_posts()); $page_limit = get page post limit from WordPress; $ count = 1; while (have_posts()) : the_post(); //build navigation if ($count <= $page_limit) echo '<a href="category/portfolio/#post-' . the_ID(). '"> else $the_page = ($count / $page_limit)round down + 1; // example $count =7 and $page_limit =6 7/6 = 1.16 round down and get 1, then add 1 and $the_page = 2 (hope that makes sense) echo '<a href="category/portfolio/page/' . $the_page . '/#post-' . the_ID(). '"> End else $count ++; End while End IFSorry about more poor Pseudo code, it is about as clear as mud.
Forum: Developing with WordPress
In reply to: Need help using WordPress like a CMSCan I reopen this thread (please let me know if it is a problem)…
I have ran into another issue.
If I have a post on my front page and lets say that its true relative link is /category/portfolio/page/2/post-10
how can I dynamically create a link to this page?
Forum: Developing with WordPress
In reply to: Need help using WordPress like a CMSOtto42,
Thanks for your quick response. That is what I needed. It is funny how simple it was to resolve…