sasa2209
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: BreadcrumbsYoast but the same issue appears with custom function. Custom theme based on twentytwelve theme.
Forum: Fixing WordPress
In reply to: List just posts with video in the contentI have read but I cannot make it work. It scans for related videos that are posted on Youtube. So it pulls them from there. Since the videos are not from the same uploader it is not working. I need to make it scan the database and then list all the posts.
Forum: Installing WordPress
In reply to: Site problems after movingI did all the required to have it work. Transfered all the files and the database.
Forum: Fixing WordPress
In reply to: Shortcode helpWell I will try to explain because the screenshot or the url is not really relevant here. The function is…
<?php $downloadfile = get_post_meta( get_the_ID(), '_staff_dlfile', false ); foreach ( $downloadfile as $att );?> <a href="<?php echo wp_get_attachment_url( $att );?>" target=_blank">Download test file here...</a>
This is the function to display meta box value which is set under the custom post type. It is used to upload the file. This way it works fine. I get the file url in a anchor tag with the ability to download the file itself.
The second…
<?php echo do_shortcode('[download file="readme.txt" title="title"]') ?>
This is the shortcode used ot display simple form to collect an email address before the actiall download. So a visitor needs to enter his name and email to get the download link. You can see that there is a dummy namre
readme.txt
which obviously will not be used here.
I need to have that value updated dynamicaly with the value from the meta box. So if a admin uploads the file in the custom post type which has that meta box assigned I want to have that shortcode updated with this file url so ther is no need to manually type in the file name.
I hope this makes sense.
Forum: Fixing WordPress
In reply to: Send user role on emailThanks for the reply but I still can’t figure it out…
Forum: Fixing WordPress
In reply to: MySql database from PhpMyAdminThanks for the reply…
The database are not both WP structured so it is not an easy task and I know that but I know that it can be done. I have a script that is developed for this purpose but it doesn’t do the job 100%. It gets the posts from one to another DB but they are not included in the post count. They are slightly different.
Is there somekind a tool for this?Aleksandar
Forum: Fixing WordPress
In reply to: strange code in WPThanks.
Forum: Fixing WordPress
In reply to: strange code in WPI don’ quite understand. You mean that some of the plugins I use could be malicious. But this happens only on the home page. Wouldn’t a plugin react on all of the pages?
Forum: Fixing WordPress
In reply to: strange code in WPThanks for your help. But you say “if this was a hack”. What could it be if not a hack?
Forum: Fixing WordPress
In reply to: strange code in WPNo.
Forum: Fixing WordPress
In reply to: strange code in WPWhat could be the purpose of this code? Especially if there is nothing wrong with the layout.
Forum: Fixing WordPress
In reply to: strange code in WPBTW everything works fine.
Forum: Fixing WordPress
In reply to: nextgen galleryResolved it!!!
Forum: Fixing WordPress
In reply to: post type templateI also have another question. I want the post to be displayed on a page and on the bottom should be a link to extended version of that post with another template assigned. How can I make that link? What should it link to?
Thanks
Forum: Fixing WordPress
In reply to: post type templateThamnks a lot. I will try it.