https://appserver-25911a4c-nginx-b5f01bf3e6a848ca958b28516393a7bc/2021/01/25/gorillasrecovering/
instead of this
https://zoonooz.sandiegozoo.org/2021/01/25/gorillasrecovering/
I was able, with the guidance of Jesse Ryles on the Pantheon Slack, to get the URIs to show correctly by changing the last line of the simple-share-buttons-adder/php/class-buttons.php file like this:
// Return share buttons. // return $html_share_buttons; return esc_url(get_permalink($post->ID));
I don’t know if this is the best solution, but it works for me for now.
]]>If i click on an option I want to know what i have clicked and redirect
If i use get_permalink in a plugin function add-actioned in init. it gives me a blank
similarly $wp_query->post->post_title;
Any ideas?
]]>can you please help me to address the following:
I would like to display at the end of each post the url of the post e.g https://www.xxx.com/name-of-post and also point to the alternative site https://www.yyy.com/name-of-post (name-of-post remains the same only the yyy should change).
Can i somehow use the get_permalink function at the end of each post?
Thanks for your support and time
i’m facing an issue returning the permalink of the CPT as a hyperlink for the product name at the cart page and the orders page
i’ve tried to filter but i can’t get it to hyperlink the product name as to the product url which is a permalink
woocommerce 2.6 wp 4.5.3
thanks in advance
//item permalink
add_filter('woocommerce_cart_item_permalink','listing_peramlink',20,2);
function listing_peramlink($product_permalink,$post){
if ($post->post->post_type == 'listing_type')
$product_permalink = get_permalink( get_post_meta($post->id));
return $product_permalink;
}
https://www.ads-software.com/plugins/woocommerce/
]]>PHP Notice: post_permalink is <strong>deprecated</strong> since version 4.4! Use get_permalink() instead. in D:\www\path\to\wp-includes\functions.php on line 3658
D:\www\example.org\www>c:\bin\grep.exe -r "post_permalink(" .
./wp-admin/includes/class-wp-press-this.php: $redirect = get_post_permalink( $post_id );
./wp-content/plugins/growth-hacking-analytics-by-qunb/controllers/last_post_functions.php: $post_url = post_permalink($post_id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/controllers/setting_post.php: $post_url = post_permalink($id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/controllers/setting_post_BU.php: $post_url = post_permalink($id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/controllers/setting_post_BU.php: $post_url = post_permalink($id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/controllers/top_posts_functions.php: $url = post_permalink($id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/models/qunb_cron.php: // $post_url = post_permalink($id);
./wp-content/plugins/growth-hacking-analytics-by-qunb/models/qunb_cron.php: $post_url = post_permalink($id);
./wp-content/themes/rise/inc/apprentice/shortcodes/shortcodes.php: $lesson_link = get_post_permalink( $key );
./wp-includes/deprecated.php:function post_permalink( $post_id = 0 ) {
./wp-includes/link-template.php: return get_post_permalink($post, $leavename, $sample);
./wp-includes/link-template.php:function get_post_permalink( $id = 0, $leavename = false, $sample = false ) {
https://www.ads-software.com/plugins/growth-hacking-analytics-by-qunb/
]]>I have created a custom footer.php and have successfully added the correct code to translate the text; however, I do not know how to do the same for the href links. Below is a section of the code:
`
What do I need to add to the a href in order to get the pages to load in the correct language?
Thank you!
Rachel
https://www.ads-software.com/plugins/polylang/
]]>Just wanted to report a small bug. In WordPress 4.4, the function post_permalink()
was deprecated, and now generates constant PHP notices when using WP_DEBUG
. (Which use a lot on our test servers, both for ours and clients sites.)
PHP Notice: post_permalink is deprecated since version 4.4! Use get_permalink() instead. in /xxxxxxxxx/wp-includes/functions.php on line 3573
It took me a bit to figure out which plugin had the code, since the errors only pointed to the WordPress core files.
After doing a little grep action I found it in this file:
wp-super-cache/wp-cache-phase2.php
The old function post_permalink()
occurs on lines:
1080, 1082, 1135, 1153, and 1176.
Just doing a straight swap of the two functions works fine.
Thanks in advance for taking care of this. Keep up the great work!
– Scott
https://www.ads-software.com/plugins/wp-super-cache/
]]>I’m getting an error with the get_permalink() code. I have this code to display the link of the page:
<?php
/*global $query_string;
query_posts( $query_string . '&order=ASC' );*/
$args = array('post_type' => 'page', 'posts_per_page' => '6', 'post__not_in'=>array('3491', '77','73','58') );
$loop = new WP_Query($args);
while ($loop->have_posts()) : $loop->the_post();
$feat_image = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
?>
<li class="col-lg-4 col-md-4 col-sm-6 col-xs-12 prod">
<img src="<?php echo $feat_image; ?>">
<div class="prod_hov col-lg-4 col-md-4 col-sm-6 col-xs-12">
<h1><a href="<?php the_field('link'); ?>"><?php the_title(); ?></a></h1>
</div>
<div class="prod_shad col-lg-4 col-md-4 col-sm-6 col-xs-12">
<h1><?php echo get_the_title(); ?></h1>
<p><?php the_excerpt(); ?></p>
<h2><a href="<?php echo get_permalink(); ?>">saber mais</h2>
</div>
</li>
<?php endwhile; ?>
and the result displays this:
<li class="col-lg-4 col-md-4 col-sm-6 col-xs-12 prod">
<img src="https://localhost:8080/sites/bioportugal/wp-content/uploads/2016/01/ci--ncias-da-vida2.jpg">
<div class="prod_hov col-lg-4 col-md-4 col-sm-6 col-xs-12">
<h1><a href="">CIêNCIAS DE VIDA</a></h1>
</div>
<div class="prod_shad col-lg-4 col-md-4 col-sm-6 col-xs-12">
<h1>CIêNCIAS DE VIDA</h1>
<p></p><p>Especialmente focados no utilizador de técnicas de Biologia Molecular.</p>
<h2><a href="https://localhost:8080/sites/bioportugal/ciencias-de-vida/">saber mais</a></h2><a href="https://localhost:8080/sites/bioportugal/ciencias-de-vida/">
</a></div><a href="https://localhost:8080/sites/bioportugal/ciencias-de-vida/">
</a></li>
as you can see the permalink code is duplicating the “a” tag, is there any solution to this?
Thanks.
]]>after upgrading to latest version 0.21.1 of wp-cli (www.wp-cli.org), when running wp eval "get_permalink(92169);"
I get …
PHP Fatal error: Call to a member function subscription() on a non-object in /var/www/vhosts/www.siliconweek.es/releases/20151207160103/www-docs/wp-content/plugins/feedwordpress/feedwordpresslocalpost.class.php on line 96
… any idea why? When adding parameter --skip-plugins=feedwordpress,fwp-sic-em
to my wp-cli-call, everything is fine.
Thanks for helping,
– Bj?rn
I am using your plugin to display events on a site I am creating. I am using the index and single templates you provided in your plugin. Do I need to be creating a CPT to run this plugin and get single pages? I have the eventbrite-index.php page displaying the full list of events but currently cant get the single pages to load for each event. I believe this is caused by a redirect issue.
The urls are displaying correctly as Http://ww.example.com/events/eventname-eventid
I have saved my permalinks with /%postname%/ but this still isn’t working. What can be done I am running this on a dev environment locally. I am developing this site using the “_s theme”. Any help with this would be greatly appreciated, been racking my brain for some time now. Thank you,
https://www.ads-software.com/plugins/eventbrite-api/
]]>