gulliver
Forum Replies Created
-
Forum: Plugins
In reply to: [Global Content Blocks] p tags added>What is the consensus for removing TinyMCE and simply using a textarea instead? That would certainly resolve this.
If that’s what’s required to fix things, I’m in favor.
Forum: Plugins
In reply to: [ShareThis: Free Sharing Buttons and Tools] Button absent on Ajax-loadFor anyone else it might help, I’ll add Brandon’s solution here:
If you're using jQuery to load content via Ajax, I have found this to be a pretty simple solution: $(document).ajaxComplete(function() { //creates the share icons stButtons.locateElements(); }); This will fire after every ajax call. You can also call this function in the 'complete' function of jQuery.ajax() settings.Forum: Fixing WordPress
In reply to: how to hide date of post & author of postThe suggested fix works by modifying the css so the chosen elects don’t display.
If you want to remove them completely, remove the appropriate line from the template file in your child theme.
Forum: Fixing WordPress
In reply to: Remove 'order' from page attributes?Thanks.
It’s part of core code, with no specific css selector and so trying to remove it is probably as easy as trying to hide.Thanks got the link. It’s useful for removing an entire meta box, but not parts thereof. No worries, thanks anyway.
The menu order seems to be legacy code, of little use in modern versions with more flexible menu options.
Forum: Plugins
In reply to: [Zajax - Ajax Navigation] Disable ajaz load for some linksThat ‘// Do not stop Paypal form’ code isn’t in the zajax.js file on the version I just downloaded.
Forum: Plugins
In reply to: [Zajax - Ajax Navigation] Impeding form action.Thanks, Gino.
As mentioned in our email contact, it works better than it did, but still has errors.
On submit, it correctly adds an item to the cart and loads a new PayPal tab.
But it also displays the error message of ‘Failed to submit!’, which vanishes from screen within a few seconds.In browsers where focus switches to the new tab that error message probably isn’t seen, because by the time the user has switched back to the original tab the message has gone.
In the absence of any other suggestions, I’m tempted to change the timing of that message so it’s removed more quickly.
Forum: Fixing WordPress
In reply to: Display items in custom taxonomyThanks. More reading… great, just what I need. 😉
Meantime, this seems to work:
<?php $terms = get_terms("host"); $count = count($terms); if ( $count > 0 ){ echo "<ul>"; foreach ( $terms as $term ) { $termlinks= get_term_link($term,$taxonomy); ?> <a href="<?php echo $termlinks; ?>"> <?php echo "<li>" . $term->name . "</li>"; ?></a><?php } echo "</ul>"; } ?>And I now know that the items in a taxonomy are correctly called ‘terms’.
Oh, joy. My brain can’t stop smiling. Now, where did I leave the life I used to have?
Forum: Fixing WordPress
In reply to: Paginate a page (not a post)@girlieworks… Thanks.
@staartmees… Also, thanks – and, more importantly, I apologize for doubting you.
Somewhere between ‘old age, stupidity, dust on screen and glasses’ I’d incorrectly pasted a quicktag with just a single (rather than double) dash. Hence it didn’t work.
And being totally honest, I’d forgotten that <!–nextpage–> worked on pages and thought it just for posts. Clearly I must have once known it, because my custom theme has the necessary code, appropriately tweaked, and which I must have added years ago.
Duh me!
Anyway, thanks to you both for saving me from myself. 😉
Forum: Fixing WordPress
In reply to: WordPress post naming.Thanks.
I’m sorry for being slow in responding – not getting notifications.Forum: Fixing WordPress
In reply to: Paginate a page (not a post)Thanks, but…
<!–more–> defines the pre-‘read more’ break-point in places where the whole post isn’t shown.
<!–nextpage–> will split a post into multiple pages.
Forum: Plugins
In reply to: [Zajax - Ajax Navigation] Disable ajaz load for some linksThere’s also an issue with form actions…
Zajax impedes the action of a PayPal add-to-cart form and prevents the desired action and delivering a ‘failed to load’ error.
I don’t know enough to be able to find a workaround.
Forum: Fixing WordPress
In reply to: Custom postsUPDATE…
With a clearer head, I think I now understand.
Create cpt for ‘host’.
Create cpt for ‘shows’.
Register custom taxonomy for ‘show’.So when I ‘add new show’ the edit screen will list the hosts so that I can select the appropriate one and assign the show to that host.
Maybe I’m wrong, but it’s time to experiment.Forum: Fixing WordPress
In reply to: Custom postsThanks.
If I understand correctly (and I’m really not sure I do)…
1 I create a cpt of ‘host’.
2 I then create a create a custom taxonomy for ‘show’ (but not a cpt for ‘show’).But don’t I need cpt for ‘host’ and ‘show’? …so that I can publish:
1 A page which lists all hosts.
2 A page for each host – which contains info about that host, and a list of their shows.
3 A page which lists all shows.
4 A page for each show – which contains info about that show.I’m sorry if I’m laboring things, my brain has almost given-up on this… I can usually fudge my way through most WP things, but this issue is beating me.
Forum: Fixing WordPress
In reply to: Conditional inside search result excerpt.UPDATE: I’ll answer my own post in case it helps somebody else later.
I’ve used this (much of which somebody elsewhere supplied):
<?php if(get_post_type() == 'page'): // If a page. ?> <p><a href="<?php the_permalink(); ?>" title="permalink">Permalink</a>.</p> <?php elseif(get_post_type() == 'post'): // If a post. ?> <p><a href="<?php the_permalink(); ?>" title="permalink">Added</a> <?php the_time('F j, Y') ?>.</p> <?php endif; ?>An option is to replace ‘Permalink’ (for page) with <?php echo get_the_title(); ?>, or leave blank.
Forum: Fixing WordPress
In reply to: what circumstances add '-2' to a slugQuick update…
More reading suggests this isn’t an uncommon query, so for others who may stumble upon this later…
The Allow Numeric Slugs plugin is designed to allow pages with numeric slugs – albeit at the cost of pagination for pages.
From what I understand, the reason WP core code prevents such naming is to avoid rewrite and other issues where numeric slugs are confused with paginated pages and/or dates.
But I won’t pretend to understand just why it applies to pages and not posts and custom posts.
Personally, I’ll continue to try to not require numeric slugs – or to unobtrusively preface them accordingly (Example: my test pages are now ‘/test/t1/’, ‘/test/t2/’, etc rather than my preferred ‘/test/1/’ format.)