art005
Forum Replies Created
-
I’m a beginner, maybe easier for you to tell me what not to do instead of what to do. I am using the popular Tesseract-2 theme. My WP is version 4.5.1
I installed widget: Shortcode, Actions and Filters. Using Tools on the dashboard I pasted this into the widget builder:
function bgmpShortcodeCalled()
{
global $post;$shortcodePageSlugs = array(
‘hello-world’,
‘second-page-slug’
);if( $post )
if( in_array( $post->post_name, $shortcodePageSlugs ) )
add_filter( ‘bgmp_map-shortcode-called’, ‘__return_true’ );
}
add_action( ‘wp’, ‘bgmpShortcodeCalled’ );Saved it and then Activated it. I still get the Add filter to Theme page error. I think what I did is suppose to be a better substitute for adding a filter to a Theme though I don’t know how to do that anyway.
So I hope you can list what I did wrong trying to understand your limited directions.
Hello Ian, I have the same problem and don’t understand your answer. I am using a Theme and a Page Builder. I pasted [bgmp-map] in the row. By the way, are the [] supposed to be typed with bgmp-map?
Forum: Localhost Installs
In reply to: 404 error due to Pretty Permalinks using local serverWampServer Apache – Apache Modules – check Rewrite_module worked great! 🙂
I hope lots of people can find this thread when they need help. I searched for hours before posting and could not find something useful.
Even my amateur solution to vcruntime140.dll error has a little merit. Try downloading an older WampServer file if the newer one is not working.
Forum: Localhost Installs
In reply to: 404 error due to Pretty Permalinks using local serverYes Wampserver v2.5. Vista SP2. In order to point to a VCRunTime140.dll that was accessible I had to install a little older version of Wampserver for 32bit. Thanks for the inquiry. I figure worst case is I’ll be using plain Permalink until I can FTP to the host and then change them there to Pretty Permalink. So if this is a lot of work to explain, I’m not desperate but it is a shame such a popular problem has persisted for more than 5 years and there isn’t a concise explanation how to resolve it.