jefffassnacht
Forum Replies Created
-
Forum: Plugins
In reply to: [Connect Matomo (WP-Matomo, WP-Piwik)] setup multisite+1 Same happening to my Multisite Network. First 30 sites have correct IDs, the rest get assigned ID=1.
Forum: Plugins
In reply to: [Intuitive Custom Post Order] Making Sites sortable on Multisite?Hi, hijiri.
Thank you for considering it!
Best.
Forum: Plugins
In reply to: [Intuitive Custom Post Order] orderby issue: possible general solutionThank you @newash and @anriettec. This solved my problem, too!
For anyone having the same issue, the CM Tooltip User guide has a list of things to check, which I did. But for me, ultimately the solution was in WP admin -> CM Tooltip Glossary -> Settings… checking the box next to “Highlight terms on posts?” made terms appear on the Custom Post Type pages.
Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postIn this support thread the plugin author says “When there’s no post,
get_adjacent_id_smart()
returnsfalse
. Doesget_adjacent_id_smart
return a result when you don’t passtrue
? If it does, then the -1 means you’re at the top of the list and Smarter Navigation doesn’t loop around and grab the last post.Forum: Plugins
In reply to: [Smarter Navigation] return URL only of next/prev postI got the URLs using this code:
<?php $prev_id = get_adjacent_id_smart(true); ?> <a href="<?php echo get_permalink( $prev_id ); ?>"><img></a> <?php $next_id = get_adjacent_id_smart(); ?> <a href="<?php echo get_permalink( $next_id ); ?>"><img></a>
There are some template tags located in
smarter-navigation/template-tags.php
. The template tag used above is set to false by default. So leave it blank to get next post id, and passtrue
to get previous post id. Of course, replace<img>
with whatever you want.Forum: Fixing WordPress
In reply to: posts_per_page not working with custom post typeHi @trisham – Thanks for the update. Here’s another solution I found. Passing the arguments to a custom query variable such as
$taxonomy_query
instead of the native$query
solved my problem. So in the end the code was something like:$args = array( [parameters] ); $taxonomy_query = new WP_Query( $args ); while ($taxonomy_query->have_posts()) : $taxonomy_query->the_post();
instead of:
$args = array( [parameters] ); $query = new WP_Query( $args ); while (have_posts()) : the_post();
This gave me control over the
posts_per_page
again.Forum: Fixing WordPress
In reply to: posts_per_page not working with custom post typeHi TrishaM,
I’m having the same issue. Did you find a workaround?
Something else worth mentioning. Referrer_link() returns the correct link, but it concatenates the link text together in a way I wouldn’t expect. The link text reads like this:
[taxonomy type] ? [term name][site name]Maybe one of these plugins will help:
Smarter Navigation
Next/Prev Post Link Plus
Haven’t tried either plugin, yet, but I’m looking for the same functionality you describe above.Forum: Fixing WordPress
In reply to: get_avatar not workingYou might check in WP-admin -> Settings -> Discussion.
Scroll to the bottom “Avatars” section. Under Avatar Display, make sure “Show Avatars” is selected.
Forum: Fixing WordPress
In reply to: Control sort order when using wp_get_attachment_image ?Inmo, I am able to get this working although something tripped me up along the way. Maybe you’re having the same situation…
It never occurred to me that gallery images don’t have a sort order after being uploaded. One must be assigned. In the image light box, on the gallery of images, there is a column named ‘Actions’. When those fields were blank, ‘orderby’ and ‘order’ didn’t affect any change for me no matter what value I assigned to them. Dragging and dropping images or typing values into the ‘Action’ fields – and saving all changes – gave them a value. Then the ‘orderby’ and ‘order’ arguments worked for me in the template code.
Hope that helps.
Forum: Fixing WordPress
In reply to: Control sort order when using wp_get_attachment_image ?Instead of the reverse array code, I believe changing from descending gallery order to ascending is solved more simply by adding this line to the $args array:
'order' => 'ASC',
Forum: Plugins
In reply to: [Plugin: Posts 2 Posts] Use Array of CPT titles in Connection InformationWorks perfectly. Thank you for the guidance, and thank you for the fantastic P2P plug-in! Much appreciated.
Forum: Plugins
In reply to: [Plugin: Posts 2 Posts] Use Array of CPT titles in Connection InformationThank you for the quick response. Using the scb_list_fold statement above, printing $colors to see it’s value returns this:
Array ( [255] => Clearwater [254] => Celadon [253] => Ginger )
A single checkbox appears in the P2P admin area but the ids aren’t displaying. Any other suggestions or ideas are greatly appreciated.